Bug 1331170 - Part 1: Remove some gfx/thebes checks for Windows Vista+. r=jrmuizel

MozReview-Commit-ID: EwlnKa8Xyg6

--HG--
extra : rebase_source : 280d87f4007f1d0fb42ecf0e657ba090d03aca39
extra : histedit_source : 7d0b092648cec7caf8b301234d1ec0f525eb92b6
This commit is contained in:
Chris Peterson 2017-01-09 21:24:29 -08:00
Родитель f48c0d3547
Коммит 9ae8abecfa
1 изменённых файлов: 6 добавлений и 23 удалений

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

@ -401,10 +401,6 @@ gfxWindowsPlatform::CanUseHardwareVideoDecoding()
bool
gfxWindowsPlatform::InitDWriteSupport()
{
if (!IsVistaOrLater()) {
return false;
}
// DWrite is only supported on Windows 7 with the platform update and higher.
// We check this by seeing if D2D1 support is available.
if (!Factory::SupportsD2D1()) {
@ -1382,17 +1378,13 @@ gfxWindowsPlatform::InitializeD3D9Config()
return;
}
if (!IsVistaOrLater()) {
d3d9.EnableByDefault();
} else {
d3d9.SetDefaultFromPref(
gfxPrefs::GetLayersAllowD3D9FallbackPrefName(),
true,
gfxPrefs::GetLayersAllowD3D9FallbackPrefDefault());
d3d9.SetDefaultFromPref(
gfxPrefs::GetLayersAllowD3D9FallbackPrefName(),
true,
gfxPrefs::GetLayersAllowD3D9FallbackPrefDefault());
if (!d3d9.IsEnabled() && gfxPrefs::LayersPreferD3D9()) {
d3d9.UserEnable("Direct3D9 enabled via layers.prefer-d3d9");
}
if (!d3d9.IsEnabled() && gfxPrefs::LayersPreferD3D9()) {
d3d9.UserEnable("Direct3D9 enabled via layers.prefer-d3d9");
}
nsCString message;
@ -1540,11 +1532,6 @@ gfxWindowsPlatform::InitializeD2DConfig()
NS_LITERAL_CSTRING("FEATURE_FAILURE_D2D_D3D11_COMP"));
return;
}
if (!IsVistaOrLater()) {
d2d1.DisableByDefault(FeatureStatus::Unavailable, "Direct2D is not available on Windows XP",
NS_LITERAL_CSTRING("FEATURE_FAILURE_D2D_XP"));
return;
}
d2d1.SetDefaultFromPref(
gfxPrefs::GetDirect2DDisabledPrefName(),
@ -1666,10 +1653,6 @@ gfxWindowsPlatform::InitGPUProcessSupport()
bool
gfxWindowsPlatform::DwmCompositionEnabled()
{
if (!IsVistaOrLater()) {
return false;
}
MOZ_ASSERT(WinUtils::dwmIsCompositionEnabledPtr);
BOOL dwmEnabled = false;