summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-27 22:06:03 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-27 22:06:03 +0100
commitc4b0715baaffc541670fd1158557aa7e61e521d3 (patch)
tree6ef47335a6aef3f271828e70335da18f73b4fb92
parent54fbb5c75c2e09104387fb1c1fff86d46aa9c5d1 (diff)
downloadUXP-c4b0715baaffc541670fd1158557aa7e61e521d3.tar
UXP-c4b0715baaffc541670fd1158557aa7e61e521d3.tar.gz
UXP-c4b0715baaffc541670fd1158557aa7e61e521d3.tar.lz
UXP-c4b0715baaffc541670fd1158557aa7e61e521d3.tar.xz
UXP-c4b0715baaffc541670fd1158557aa7e61e521d3.zip
Issue #1360 - Enable acceleration by default on all known-good platforms.
-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;