| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| index 2fd0b3c85393ea4a89217e7d6142843e580b2042..aa46ba2ab78e4cf79535fc251785f1ef0bb510ec 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| @@ -111,9 +111,14 @@ namespace {
|
|
|
| const double secondsBetweenRestoreAttempts = 1.0;
|
| const int maxGLErrorsAllowedToConsole = 256;
|
| -const unsigned maxGLActiveContexts = 16;
|
| const unsigned maxGLActiveContextsOnWorker = 4;
|
|
|
| +#if OS(ANDROID)
|
| +const unsigned maxGLActiveContexts = 8;
|
| +#else // OS(ANDROID)
|
| +const unsigned maxGLActiveContexts = 16;
|
| +#endif // OS(ANDROID)
|
| +
|
| unsigned currentMaxGLContexts() {
|
| return isMainThread() ? maxGLActiveContexts : maxGLActiveContextsOnWorker;
|
| }
|
|
|