diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-27 22:06:03 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-27 22:06:03 +0100 |
commit | c4b0715baaffc541670fd1158557aa7e61e521d3 (patch) | |
tree | 6ef47335a6aef3f271828e70335da18f73b4fb92 /gfx | |
parent | 54fbb5c75c2e09104387fb1c1fff86d46aa9c5d1 (diff) | |
download | UXP-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.
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/thebes/gfxPlatform.cpp | 6 |
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; |