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:
Jeff Muizelaar 2020-10-06 15:06:53 +00:00
Родитель 0cdf64bae1
Коммит 7b09b731d0
2 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -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());