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 |
| 68 // Enable OpenGL ES 3 APIs without proper service side validation. |
| 69 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; |
| 70 |
64 const char* kGpuSwitches[] = { | 71 const char* kGpuSwitches[] = { |
65 kCompileShaderAlwaysSucceeds, | 72 kCompileShaderAlwaysSucceeds, |
66 kDisableGLErrorLimit, | 73 kDisableGLErrorLimit, |
67 kDisableGLSLTranslator, | 74 kDisableGLSLTranslator, |
68 kDisableGpuDriverBugWorkarounds, | 75 kDisableGpuDriverBugWorkarounds, |
69 kDisableShaderNameHashing, | 76 kDisableShaderNameHashing, |
70 kEnableGPUCommandLogging, | 77 kEnableGPUCommandLogging, |
71 kEnableGPUDebugging, | 78 kEnableGPUDebugging, |
72 kEnableGPUServiceLoggingGPU, | 79 kEnableGPUServiceLoggingGPU, |
73 kDisableGpuProgramCache, | 80 kDisableGpuProgramCache, |
74 kEnforceGLMinimums, | 81 kEnforceGLMinimums, |
75 kForceGpuMemAvailableMb, | 82 kForceGpuMemAvailableMb, |
76 kGpuDriverBugWorkarounds, | 83 kGpuDriverBugWorkarounds, |
77 kGpuProgramCacheSizeKb, | 84 kGpuProgramCacheSizeKb, |
78 kDisableGpuShaderDiskCache, | 85 kDisableGpuShaderDiskCache, |
79 kEnableShareGroupAsyncTextureUpload, | 86 kEnableShareGroupAsyncTextureUpload, |
| 87 kEnableUnsafeES3APIs, |
| 88 kEnableSubscribeUniformExtension, |
80 }; | 89 }; |
81 | 90 |
82 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 91 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
83 | 92 |
84 } // namespace switches | 93 } // namespace switches |
OLD | NEW |