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 | 515c1193c5663e46a313acb7a39ed2f3d209f69e (patch) | |
tree | c291e0ee9c44ec2c1fa2b1a56782cd630c571469 /dom | |
parent | 108ec40998d1b571f073d1e57de5fbf368bfe17c (diff) | |
download | uxp-515c1193c5663e46a313acb7a39ed2f3d209f69e.tar.gz |
Issue #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 e2e05e5fd3..ad54aa388b 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()) { |