зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1666455. Enable WebRender on higher refresh rates on non Intel. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D92615
This commit is contained in:
Родитель
0cdf64bae1
Коммит
7b09b731d0
|
@ -177,14 +177,15 @@ bool gfxConfigManager::ConfigureWebRenderQualified() {
|
|||
"Battery Intel requires os compositor",
|
||||
"INTEL_BATTERY_REQUIRES_DCOMP"_ns);
|
||||
}
|
||||
}
|
||||
|
||||
int32_t maxRefreshRate = mGfxInfo->GetMaxRefreshRate();
|
||||
if (maxRefreshRate > 60) {
|
||||
mFeatureWrQualified->Disable(FeatureStatus::Blocked,
|
||||
int32_t maxRefreshRate = mGfxInfo->GetMaxRefreshRate();
|
||||
if (maxRefreshRate > 60) {
|
||||
mFeatureWrQualified->Disable(FeatureStatus::Blocked,
|
||||
"Monitor refresh rate too high",
|
||||
"REFRESH_RATE_TOO_HIGH"_ns);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return guarded;
|
||||
|
|
|
@ -668,6 +668,7 @@ TEST_F(GfxConfigManager, WebRenderHighRefreshRateNightly) {
|
|||
TEST_F(GfxConfigManager, WebRenderHighRefreshRateNotNightly) {
|
||||
mIsNightly = false;
|
||||
mMockGfxInfo->mMaxRefreshRate = 120;
|
||||
mMockGfxInfo->mVendorId = "0x8086";
|
||||
ConfigureWebRender();
|
||||
|
||||
EXPECT_FALSE(mFeatures.mWrQualified.IsEnabled());
|
||||
|
@ -684,6 +685,7 @@ TEST_F(GfxConfigManager, WebRenderHighRefreshRateNotNightly) {
|
|||
TEST_F(GfxConfigManager, WebRenderAtRefreshRateThreshold) {
|
||||
mIsNightly = false;
|
||||
mMockGfxInfo->mMaxRefreshRate = 60;
|
||||
mMockGfxInfo->mVendorId = "0x8086";
|
||||
ConfigureWebRender();
|
||||
|
||||
EXPECT_TRUE(mFeatures.mWrQualified.IsEnabled());
|
||||
|
|
Загрузка…
Ссылка в новой задаче