Bug 1641510 - Ensure we allow WebRender on beta/release for 60 Hz monitors. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D77234
This commit is contained in:
Andrew Osmond 2020-05-28 13:24:29 +00:00
Родитель af36e8b59c
Коммит 5a41ea33e0
2 изменённых файлов: 17 добавлений и 1 удалений

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

@ -181,7 +181,7 @@ bool gfxConfigManager::ConfigureWebRenderQualified() {
}
int32_t maxRefreshRate = mGfxInfo->GetMaxRefreshRate();
if (maxRefreshRate >= 60) {
if (maxRefreshRate > 60) {
mFeatureWrQualified->Disable(FeatureStatus::Blocked,
"Monitor refresh rate too high",
NS_LITERAL_CSTRING("REFRESH_RATE_TOO_HIGH"));

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

@ -725,3 +725,19 @@ TEST_F(GfxConfigManager, WebRenderHighRefreshRateNotNightly) {
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
}
TEST_F(GfxConfigManager, WebRenderAtRefreshRateThreshold) {
mIsNightly = false;
mMockGfxInfo->mMaxRefreshRate = 60;
ConfigureWebRender();
EXPECT_TRUE(mFeatures.mWrQualified.IsEnabled());
EXPECT_TRUE(mFeatures.mWr.IsEnabled());
EXPECT_TRUE(mFeatures.mWrCompositor.IsEnabled());
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
}