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 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 | 8 |
9 namespace switches { | 9 namespace switches { |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 "enable-threaded-texture-mailboxes"; | 64 "enable-threaded-texture-mailboxes"; |
65 | 65 |
66 // Include ANGLE's intermediate representation (AST) output in shader | 66 // Include ANGLE's intermediate representation (AST) output in shader |
67 // compilation info logs. | 67 // compilation info logs. |
68 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; | 68 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; |
69 | 69 |
70 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to | 70 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to |
71 // round intermediate values in ANGLE. | 71 // round intermediate values in ANGLE. |
72 const char kEmulateShaderPrecision[] = "emulate-shader-precision"; | 72 const char kEmulateShaderPrecision[] = "emulate-shader-precision"; |
73 | 73 |
| 74 const char* kGpuSwitches[] = { |
| 75 kCompileShaderAlwaysSucceeds, |
| 76 kDisableGLErrorLimit, |
| 77 kDisableGLSLTranslator, |
| 78 kDisableGpuDriverBugWorkarounds, |
| 79 kDisableShaderNameHashing, |
| 80 kEnableGPUCommandLogging, |
| 81 kEnableGPUDebugging, |
| 82 kEnableGPUServiceLoggingGPU, |
| 83 kDisableGpuProgramCache, |
| 84 kEnforceGLMinimums, |
| 85 kForceGpuMemAvailableMb, |
| 86 kGpuDriverBugWorkarounds, |
| 87 kGpuProgramCacheSizeKb, |
| 88 kDisableGpuShaderDiskCache, |
| 89 kEnableShareGroupAsyncTextureUpload, |
| 90 kEnableSubscribeUniformExtension, |
| 91 kGLShaderIntermOutput, |
| 92 kEmulateShaderPrecision, |
| 93 }; |
| 94 |
| 95 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
| 96 |
74 } // namespace switches | 97 } // namespace switches |
OLD | NEW |