зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1264062 - Don't bother checking which accelerated layer types are available if they're all disabled by pref r=milan
This commit is contained in:
Родитель
724c0bbe9d
Коммит
a1794aab28
|
@ -2079,7 +2079,7 @@ InitLayersAccelerationPrefs()
|
|||
if (gfxPrefs::LayersAccelerationForceEnabled()) {
|
||||
sLayersSupportsD3D9 = true;
|
||||
sLayersSupportsD3D11 = true;
|
||||
} else if (gfxInfo) {
|
||||
} else if (!gfxPrefs::LayersAccelerationDisabled() && gfxInfo) {
|
||||
if (NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_DIRECT3D_9_LAYERS, &status))) {
|
||||
if (status == nsIGfxInfo::FEATURE_STATUS_OK) {
|
||||
MOZ_ASSERT(!sPrefBrowserTabsRemoteAutostart || IsVistaOrLater());
|
||||
|
|
Загрузка…
Ссылка в новой задаче