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 const char* kGpuSwitches[] = { | 68 const char* kGpuSwitches[] = { |
65 kCompileShaderAlwaysSucceeds, | 69 kCompileShaderAlwaysSucceeds, |
66 kDisableGLErrorLimit, | 70 kDisableGLErrorLimit, |
67 kDisableGLSLTranslator, | 71 kDisableGLSLTranslator, |
68 kDisableGpuDriverBugWorkarounds, | 72 kDisableGpuDriverBugWorkarounds, |
69 kDisableShaderNameHashing, | 73 kDisableShaderNameHashing, |
70 kEnableGPUCommandLogging, | 74 kEnableGPUCommandLogging, |
71 kEnableGPUDebugging, | 75 kEnableGPUDebugging, |
72 kEnableGPUServiceLoggingGPU, | 76 kEnableGPUServiceLoggingGPU, |
73 kDisableGpuProgramCache, | 77 kDisableGpuProgramCache, |
74 kEnforceGLMinimums, | 78 kEnforceGLMinimums, |
75 kForceGpuMemAvailableMb, | 79 kForceGpuMemAvailableMb, |
76 kGpuDriverBugWorkarounds, | 80 kGpuDriverBugWorkarounds, |
77 kGpuProgramCacheSizeKb, | 81 kGpuProgramCacheSizeKb, |
78 kDisableGpuShaderDiskCache, | 82 kDisableGpuShaderDiskCache, |
79 kEnableShareGroupAsyncTextureUpload, | 83 kEnableShareGroupAsyncTextureUpload, |
| 84 kEnableSubscribeUniformExtension, |
80 }; | 85 }; |
81 | 86 |
82 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 87 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
83 | 88 |
84 } // namespace switches | 89 } // namespace switches |
OLD | NEW |