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 // Simulates shared textures when share groups are not available. Not available |
| 60 // everywhere. |
| 61 const char kEnableThreadedTextureMailboxes[] = |
| 62 "enable-threaded-texture-mailboxes"; |
| 63 |
59 const char* kGpuSwitches[] = { | 64 const char* kGpuSwitches[] = { |
60 kCompileShaderAlwaysSucceeds, | 65 kCompileShaderAlwaysSucceeds, |
61 kDisableGLErrorLimit, | 66 kDisableGLErrorLimit, |
62 kDisableGLSLTranslator, | 67 kDisableGLSLTranslator, |
63 kDisableGpuDriverBugWorkarounds, | 68 kDisableGpuDriverBugWorkarounds, |
64 kDisableShaderNameHashing, | 69 kDisableShaderNameHashing, |
65 kEnableGPUCommandLogging, | 70 kEnableGPUCommandLogging, |
66 kEnableGPUDebugging, | 71 kEnableGPUDebugging, |
67 kEnableGPUServiceLoggingGPU, | 72 kEnableGPUServiceLoggingGPU, |
68 kDisableGpuProgramCache, | 73 kDisableGpuProgramCache, |
69 kEnforceGLMinimums, | 74 kEnforceGLMinimums, |
70 kForceGpuMemAvailableMb, | 75 kForceGpuMemAvailableMb, |
71 kGpuDriverBugWorkarounds, | 76 kGpuDriverBugWorkarounds, |
72 kGpuProgramCacheSizeKb, | 77 kGpuProgramCacheSizeKb, |
73 kDisableGpuShaderDiskCache, | 78 kDisableGpuShaderDiskCache, |
74 kEnableShareGroupAsyncTextureUpload, | 79 kEnableShareGroupAsyncTextureUpload, |
75 }; | 80 }; |
76 | 81 |
77 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 82 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
78 | 83 |
79 } // namespace switches | 84 } // namespace switches |
OLD | NEW |