OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "gpu/command_buffer/service/gpu_switches.h" | 5 #include "gpu/command_buffer/service/gpu_switches.h" |
6 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
7 | 7 |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // Always return success when compiling a shader. Linking will still fail. | 10 // Always return success when compiling a shader. Linking will still fail. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Sets the maximum size of the in-memory gpu program cache, in kb | 49 // Sets the maximum size of the in-memory gpu program cache, in kb |
50 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; | 50 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; |
51 | 51 |
52 // Disables the GPU shader on disk cache. | 52 // Disables the GPU shader on disk cache. |
53 const char kDisableGpuShaderDiskCache[] = "disable-gpu-shader-disk-cache"; | 53 const char kDisableGpuShaderDiskCache[] = "disable-gpu-shader-disk-cache"; |
54 | 54 |
55 // Allows async texture uploads (off main thread) via GL context sharing. | 55 // Allows async texture uploads (off main thread) via GL context sharing. |
56 const char kEnableShareGroupAsyncTextureUpload[] = | 56 const char kEnableShareGroupAsyncTextureUpload[] = |
57 "enable-share-group-async-texture-upload"; | 57 "enable-share-group-async-texture-upload"; |
58 | 58 |
| 59 // Enable WebGL subscribe uniform extension. |
| 60 const char kEnableSubscribeUniformExtension[] = |
| 61 "enable-subscribe-uniform-extension"; |
| 62 |
59 // Simulates shared textures when share groups are not available. Not available | 63 // Simulates shared textures when share groups are not available. Not available |
60 // everywhere. | 64 // everywhere. |
61 const char kEnableThreadedTextureMailboxes[] = | 65 const char kEnableThreadedTextureMailboxes[] = |
62 "enable-threaded-texture-mailboxes"; | 66 "enable-threaded-texture-mailboxes"; |
63 | 67 |
64 // Enable OpenGL ES 3 APIs without proper service side validation. | 68 // Enable OpenGL ES 3 APIs without proper service side validation. |
65 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; | 69 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; |
66 | 70 |
67 const char* kGpuSwitches[] = { | 71 const char* kGpuSwitches[] = { |
68 kCompileShaderAlwaysSucceeds, | 72 kCompileShaderAlwaysSucceeds, |
69 kDisableGLErrorLimit, | 73 kDisableGLErrorLimit, |
70 kDisableGLSLTranslator, | 74 kDisableGLSLTranslator, |
71 kDisableGpuDriverBugWorkarounds, | 75 kDisableGpuDriverBugWorkarounds, |
72 kDisableShaderNameHashing, | 76 kDisableShaderNameHashing, |
73 kEnableGPUCommandLogging, | 77 kEnableGPUCommandLogging, |
74 kEnableGPUDebugging, | 78 kEnableGPUDebugging, |
75 kEnableGPUServiceLoggingGPU, | 79 kEnableGPUServiceLoggingGPU, |
76 kDisableGpuProgramCache, | 80 kDisableGpuProgramCache, |
77 kEnforceGLMinimums, | 81 kEnforceGLMinimums, |
78 kForceGpuMemAvailableMb, | 82 kForceGpuMemAvailableMb, |
79 kGpuDriverBugWorkarounds, | 83 kGpuDriverBugWorkarounds, |
80 kGpuProgramCacheSizeKb, | 84 kGpuProgramCacheSizeKb, |
81 kDisableGpuShaderDiskCache, | 85 kDisableGpuShaderDiskCache, |
82 kEnableShareGroupAsyncTextureUpload, | 86 kEnableShareGroupAsyncTextureUpload, |
83 kEnableUnsafeES3APIs, | 87 kEnableUnsafeES3APIs, |
| 88 kEnableSubscribeUniformExtension, |
84 }; | 89 }; |
85 | 90 |
86 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 91 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
87 | 92 |
88 } // namespace switches | 93 } // namespace switches |
OLD | NEW |