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 |
7 #include "base/macros.h" | |
8 #include "gpu/config/gpu_switches.h" | |
Zhenyao Mo
2015/04/28 16:41:28
nit: No need because you included it in .h file al
tfarina
2015/04/28 18:07:23
Done.
| |
7 | 9 |
8 namespace switches { | 10 namespace switches { |
9 | 11 |
10 // Always return success when compiling a shader. Linking will still fail. | 12 // Always return success when compiling a shader. Linking will still fail. |
11 const char kCompileShaderAlwaysSucceeds[] = "compile-shader-always-succeeds"; | 13 const char kCompileShaderAlwaysSucceeds[] = "compile-shader-always-succeeds"; |
12 | 14 |
13 // Disable the GL error log limit. | 15 // Disable the GL error log limit. |
14 const char kDisableGLErrorLimit[] = "disable-gl-error-limit"; | 16 const char kDisableGLErrorLimit[] = "disable-gl-error-limit"; |
15 | 17 |
16 // Disable the GLSL translator. | 18 // Disable the GLSL translator. |
(...skipping 19 matching lines...) Expand all Loading... | |
36 | 38 |
37 // Turn off gpu program caching | 39 // Turn off gpu program caching |
38 const char kDisableGpuProgramCache[] = "disable-gpu-program-cache"; | 40 const char kDisableGpuProgramCache[] = "disable-gpu-program-cache"; |
39 | 41 |
40 // Enforce GL minimums. | 42 // Enforce GL minimums. |
41 const char kEnforceGLMinimums[] = "enforce-gl-minimums"; | 43 const char kEnforceGLMinimums[] = "enforce-gl-minimums"; |
42 | 44 |
43 // Sets the total amount of memory that may be allocated for GPU resources | 45 // Sets the total amount of memory that may be allocated for GPU resources |
44 const char kForceGpuMemAvailableMb[] = "force-gpu-mem-available-mb"; | 46 const char kForceGpuMemAvailableMb[] = "force-gpu-mem-available-mb"; |
45 | 47 |
46 // Pass a set of GpuDriverBugWorkaroundType ids, seperated by ','. | |
47 const char kGpuDriverBugWorkarounds[] = "gpu-driver-bug-workarounds"; | |
48 | |
49 // Sets the maximum size of the in-memory gpu program cache, in kb | 48 // Sets the maximum size of the in-memory gpu program cache, in kb |
50 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; | 49 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; |
51 | 50 |
52 // Disables the GPU shader on disk cache. | 51 // Disables the GPU shader on disk cache. |
53 const char kDisableGpuShaderDiskCache[] = "disable-gpu-shader-disk-cache"; | 52 const char kDisableGpuShaderDiskCache[] = "disable-gpu-shader-disk-cache"; |
54 | 53 |
55 // Allows async texture uploads (off main thread) via GL context sharing. | 54 // Allows async texture uploads (off main thread) via GL context sharing. |
56 const char kEnableShareGroupAsyncTextureUpload[] = | 55 const char kEnableShareGroupAsyncTextureUpload[] = |
57 "enable-share-group-async-texture-upload"; | 56 "enable-share-group-async-texture-upload"; |
58 | 57 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 kDisableGpuShaderDiskCache, | 89 kDisableGpuShaderDiskCache, |
91 kEnableShareGroupAsyncTextureUpload, | 90 kEnableShareGroupAsyncTextureUpload, |
92 kEnableSubscribeUniformExtension, | 91 kEnableSubscribeUniformExtension, |
93 kGLShaderIntermOutput, | 92 kGLShaderIntermOutput, |
94 kEmulateShaderPrecision, | 93 kEmulateShaderPrecision, |
95 }; | 94 }; |
96 | 95 |
97 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 96 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
98 | 97 |
99 } // namespace switches | 98 } // namespace switches |
OLD | NEW |