summaryrefslogtreecommitdiffstats
path: root/gfx/thebes
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-19 19:20:15 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-19 19:20:15 +0100
commitf297ef798e3b4577bb82119161ea9628f37ba796 (patch)
treef47445b84c19f5b62e87fa0c93bc580750f60980 /gfx/thebes
parent13a9ea6486df49cee94a5e5a23b02dca13968eb7 (diff)
downloadUXP-f297ef798e3b4577bb82119161ea9628f37ba796.tar
UXP-f297ef798e3b4577bb82119161ea9628f37ba796.tar.gz
UXP-f297ef798e3b4577bb82119161ea9628f37ba796.tar.lz
UXP-f297ef798e3b4577bb82119161ea9628f37ba796.tar.xz
UXP-f297ef798e3b4577bb82119161ea9628f37ba796.zip
Remove some gfx/thebes checks for Windows Vista+.
Diffstat (limited to 'gfx/thebes')
-rwxr-xr-xgfx/thebes/gfxWindowsPlatform.cpp29
1 files changed, 6 insertions, 23 deletions
diff --git a/gfx/thebes/gfxWindowsPlatform.cpp b/gfx/thebes/gfxWindowsPlatform.cpp
index 8efa67afa..54263c8a3 100755
--- a/gfx/thebes/gfxWindowsPlatform.cpp
+++ b/gfx/thebes/gfxWindowsPlatform.cpp
@@ -396,10 +396,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;
@@ -1563,11 +1555,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(),
@@ -1689,10 +1676,6 @@ gfxWindowsPlatform::InitGPUProcessSupport()
bool
gfxWindowsPlatform::DwmCompositionEnabled()
{
- if (!IsVistaOrLater()) {
- return false;
- }
-
MOZ_ASSERT(WinUtils::dwmIsCompositionEnabledPtr);
BOOL dwmEnabled = false;