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 |
7 namespace switches { | 8 namespace switches { |
8 | 9 |
9 // Turn on Calling GL Error after every command. | 10 // Turn on Calling GL Error after every command. |
10 const char kCompileShaderAlwaysSucceeds[] = "compile-shader-always-succeeds"; | 11 const char kCompileShaderAlwaysSucceeds[] = "compile-shader-always-succeeds"; |
11 | 12 |
12 // Disable the GLSL translator. | 13 // Disable the GLSL translator. |
13 const char kDisableGLSLTranslator[] = "disable-glsl-translator"; | 14 const char kDisableGLSLTranslator[] = "disable-glsl-translator"; |
14 | 15 |
15 // Turn on Logging GPU commands. | 16 // Turn on Logging GPU commands. |
16 const char kEnableGPUCommandLogging[] = "enable-gpu-command-logging"; | 17 const char kEnableGPUCommandLogging[] = "enable-gpu-command-logging"; |
17 | 18 |
18 // Turn on Calling GL Error after every command. | 19 // Turn on Calling GL Error after every command. |
19 const char kEnableGPUDebugging[] = "enable-gpu-debugging"; | 20 const char kEnableGPUDebugging[] = "enable-gpu-debugging"; |
20 | 21 |
| 22 const char* kGpuSwitches[] = { |
| 23 kCompileShaderAlwaysSucceeds, |
| 24 kDisableGLSLTranslator, |
| 25 kEnableGPUCommandLogging, |
| 26 kEnableGPUDebugging, |
| 27 }; |
| 28 |
| 29 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
| 30 |
21 } // namespace switches | 31 } // namespace switches |
OLD | NEW |