Bug 901002 - Add Windows 8.1 to the OS list for gfx driver blacklisting. r=bas

This commit is contained in:
Brian R. Bondy 2013-09-13 11:08:05 -07:00
parent d09ebefb80
commit f798a11702
4 changed files with 7 additions and 1 deletions

View File

@ -246,7 +246,8 @@ public:
kWindowsServer2003 = 0x50002,
kWindowsVista = 0x60000,
kWindows7 = 0x60001,
kWindows8 = 0x60002
kWindows8 = 0x60002,
kWindows8_1 = 0x60003
};
static int32_t WindowsOSVersion(int32_t *aBuildNum = nullptr);

View File

@ -758,6 +758,8 @@ WindowsVersionToOperatingSystem(int32_t aWindowsVersion)
return DRIVER_OS_WINDOWS_7;
case gfxWindowsPlatform::kWindows8:
return DRIVER_OS_WINDOWS_8;
case gfxWindowsPlatform::kWindows8_1:
return DRIVER_OS_WINDOWS_8_1;
case gfxWindowsPlatform::kWindowsUnknown:
default:
return DRIVER_OS_UNKNOWN;

View File

@ -35,6 +35,7 @@ enum OperatingSystem {
DRIVER_OS_WINDOWS_VISTA,
DRIVER_OS_WINDOWS_7,
DRIVER_OS_WINDOWS_8,
DRIVER_OS_WINDOWS_8_1,
DRIVER_OS_LINUX,
DRIVER_OS_OS_X_10_5,
DRIVER_OS_OS_X_10_6,

View File

@ -211,6 +211,8 @@ BlacklistOSToOperatingSystem(const nsAString& os)
return DRIVER_OS_WINDOWS_7;
else if (os == NS_LITERAL_STRING("WINNT 6.2"))
return DRIVER_OS_WINDOWS_8;
else if (os == NS_LITERAL_STRING("WINNT 6.3"))
return DRIVER_OS_WINDOWS_8_1;
else if (os == NS_LITERAL_STRING("Linux"))
return DRIVER_OS_LINUX;
else if (os == NS_LITERAL_STRING("Darwin 9"))