summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-27 22:06:03 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:15:53 +0200
commit7e59ac9036ae2cbb91ff216e50eac75b9588557a (patch)
tree47e20f45c5a3ca496fccf9df73b4e477bab67021 /gfx
parentf1e40aaa5b974b2b6bbfed82eeda031dd1d04904 (diff)
downloadUXP-7e59ac9036ae2cbb91ff216e50eac75b9588557a.tar
UXP-7e59ac9036ae2cbb91ff216e50eac75b9588557a.tar.gz
UXP-7e59ac9036ae2cbb91ff216e50eac75b9588557a.tar.lz
UXP-7e59ac9036ae2cbb91ff216e50eac75b9588557a.tar.xz
UXP-7e59ac9036ae2cbb91ff216e50eac75b9588557a.zip
Issue #1360 - Enable acceleration by default on all known-good platforms.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/thebes/gfxPlatform.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp
index 4cd044f90..ae4336060 100644
--- a/gfx/thebes/gfxPlatform.cpp
+++ b/gfx/thebes/gfxPlatform.cpp
@@ -2175,7 +2175,11 @@ gfxPlatform::CanUseHardwareVideoDecoding()
bool
gfxPlatform::AccelerateLayersByDefault()
{
-#if defined(MOZ_GL_PROVIDER) || defined(MOZ_WIDGET_UIKIT)
+ // Note: add any new platform defines here that should get HWA by default.
+#if defined(XP_WIN) || defined(XP_MACOSX) || defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_UIKIT)
+ return true;
+#elif defined(MOZ_GL_PROVIDER)
+ // GL provider manually declared
return true;
#else
return false;