Skip to content

Commit

Permalink
Issue #1360 - Enable acceleration by default on all known-good platfo…
Browse files Browse the repository at this point in the history
…rms.
  • Loading branch information
wolfbeast committed Jan 27, 2020
1 parent 54fbb5c commit c4b0715
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gfx/thebes/gfxPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c4b0715

Please sign in to comment.