Bug 1292326 - Let layers.acceleration.force-enabled apply to the OPENGL_COMPOSITING feature. r=jrmuizel

MozReview-Commit-ID: 2Lx4CVOao6S

--HG--
extra : rebase_source : b7d3ff19ab2e219ac78a681d7a7785f2f6b57abe
This commit is contained in:
Andrew Comminos 2016-08-04 16:15:20 -04:00
Родитель 7429cdd2f1
Коммит 6417a88066
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -2505,6 +2505,12 @@ gfxPlatform::InitOpenGLConfig()
if (!IsGfxInfoStatusOkay(nsIGfxInfo::FEATURE_OPENGL_LAYERS, &message, failureId)) {
openGLFeature.Disable(FeatureStatus::Blacklisted, message.get(), failureId);
}
// Ensure that an accelerated compositor backend is available when layers
// acceleration is force-enabled.
if (gfxPrefs::LayersAccelerationForceEnabledDoNotUseDirectly()) {
openGLFeature.UserForceEnable("Force-enabled by pref");
}
}
bool