Bug 1264062 - Don't bother checking which accelerated layer. r=milan, a=test-only

From 3add8735ef0fe8a9bd68aee8f6b65f3e96997296 Mon Sep 17 00:00:00 2001
 types are available if they're all disabled by pref
---
 gfx/thebes/gfxPlatform.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
This commit is contained in:
George Wright 2016-04-12 16:54:02 -04:00
parent 9d74cf299c
commit 5433b0b99d

View File

@ -1998,7 +1998,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) {
if (sPrefBrowserTabsRemoteAutostart && !IsVistaOrLater()) {