Bug 1237770: Disable D3D9 on XP with E10S. r=jrmuizel

This commit is contained in:
Milan Sreckovic 2016-01-13 12:10:51 -05:00
parent 76c454533d
commit 4e4e2e2c52

View File

@ -45,6 +45,10 @@
#include "gfxAndroidPlatform.h"
#endif
#ifdef XP_WIN
#include "mozilla/WindowsVersion.h"
#endif
#include "nsGkAtoms.h"
#include "gfxPlatformFontList.h"
#include "gfxContext.h"
@ -1944,7 +1948,11 @@ InitLayersAccelerationPrefs()
} else if (gfxInfo) {
if (NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_DIRECT3D_9_LAYERS, &status))) {
if (status == nsIGfxInfo::FEATURE_STATUS_OK) {
sLayersSupportsD3D9 = true;
if (sPrefBrowserTabsRemoteAutostart && !IsVistaOrLater()) {
gfxWarning() << "Disallowing D3D9 on Windows XP with E10S - see bug 1237770";
} else {
sLayersSupportsD3D9 = true;
}
}
}
if (NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS, &status))) {