mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1360 - Enable acceleration by default on all known-good platforms.
This commit is contained in:
parent
858d01468b
commit
9896dd74fb
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue