diff options
author | Moonchild <moonchild@palemoon.org> | 2021-03-10 18:58:26 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-03-10 18:58:26 +0000 |
commit | bf9a812c8d5721f73b76f698755a2f60cf58ac0c (patch) | |
tree | c291e0ee9c44ec2c1fa2b1a56782cd630c571469 /dom | |
parent | 0e882ce31618f598ce4ab2499a4920d8bd04c1bb (diff) | |
download | aura-central-bf9a812c8d5721f73b76f698755a2f60cf58ac0c.tar.gz |
Issue mcp-graveyard/UXP%1053 - Remove mobile-specific graphics "optimizations" (=compromises)
Diffstat (limited to 'dom')
-rw-r--r-- | dom/canvas/WebGLContext.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/dom/canvas/WebGLContext.cpp b/dom/canvas/WebGLContext.cpp index e2e05e5fd..ad54aa388 100644 --- a/dom/canvas/WebGLContext.cpp +++ b/dom/canvas/WebGLContext.cpp @@ -1078,14 +1078,8 @@ WebGLContext::ClearBackbufferIfNeeded() void WebGLContext::LoseOldestWebGLContextIfLimitExceeded() { -#ifdef MOZ_GFX_OPTIMIZE_MOBILE - // some mobile devices can't have more than 8 GL contexts overall - const size_t kMaxWebGLContextsPerPrincipal = 2; - const size_t kMaxWebGLContexts = 4; -#else const size_t kMaxWebGLContextsPerPrincipal = 16; const size_t kMaxWebGLContexts = 32; -#endif MOZ_ASSERT(kMaxWebGLContextsPerPrincipal < kMaxWebGLContexts); if (!NS_IsMainThread()) { |