Bug 790138 - raise WebGL context limits on desktop - r=jgilbert
authorBenoit Jacob <bjacob@mozilla.com>
Fri, 21 Sep 2012 13:44:35 -0400
changeset 107841 b8981694b0cc7f1a6e9725c1a155d7c24199bd70
parent 107840 b6ac16c3a5c75e41fb54a0423742dbd6c745c8ca
child 107842 cb2a1ae48b7ada8331129967560915c52f41d9d3
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersjgilbert
bugs790138
milestone18.0a1
Bug 790138 - raise WebGL context limits on desktop - r=jgilbert
content/canvas/src/WebGLContext.cpp
--- a/content/canvas/src/WebGLContext.cpp
+++ b/content/canvas/src/WebGLContext.cpp
@@ -607,18 +607,18 @@ WebGLContext::Render(gfxContext *ctx, gf
 
 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 = 8;
-    const size_t kMaxWebGLContexts             = 16;
+    const size_t kMaxWebGLContextsPerPrincipal = 16;
+    const size_t kMaxWebGLContexts             = 32;
 #endif
     MOZ_ASSERT(kMaxWebGLContextsPerPrincipal < kMaxWebGLContexts);
 
     // it's important to update the index on a new context before losing old contexts,
     // otherwise new unused contexts would all have index 0 and we couldn't distinguish older ones
     // when choosing which one to lose first.
     UpdateLastUseIndex();