зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
af36e8b59c
Коммит
5a41ea33e0
|
@ -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());
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче