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 "ui/gl/gl_switches.h" | 5 #include "ui/gl/gl_switches.h" |
6 #include "base/basictypes.h" | 6 |
| 7 #if !defined(ENABLE_FAST_COMMAND_LINE_SWITCHES) |
7 | 8 |
8 namespace gfx { | 9 namespace gfx { |
9 | 10 |
10 const char kGLImplementationDesktopName[] = "desktop"; | 11 const char kGLImplementationDesktopName[] = "desktop"; |
11 const char kGLImplementationOSMesaName[] = "osmesa"; | 12 const char kGLImplementationOSMesaName[] = "osmesa"; |
12 const char kGLImplementationAppleName[] = "apple"; | 13 const char kGLImplementationAppleName[] = "apple"; |
13 const char kGLImplementationEGLName[] = "egl"; | 14 const char kGLImplementationEGLName[] = "egl"; |
14 const char kGLImplementationSwiftShaderName[] = "swiftshader"; | 15 const char kGLImplementationSwiftShaderName[] = "swiftshader"; |
15 const char kGLImplementationMockName[] = "mock"; | 16 const char kGLImplementationMockName[] = "mock"; |
16 | 17 |
17 } // namespace gfx | 18 } // namespace gfx |
18 | 19 |
| 20 #endif // !defined(ENABLE_FAST_COMMAND_LINE_SWITCHES) |
| 21 |
19 namespace switches { | 22 namespace switches { |
20 | 23 |
21 // Enables use of D3D11 if it would otherwise be disabled by the blacklist. | 24 // Enables use of D3D11 if it would otherwise be disabled by the blacklist. |
22 const char kEnableD3D11[] = "enable-d3d11"; | 25 const char kEnableD3D11[] = "enable-d3d11"; |
23 | 26 |
24 // Disables use of D3D11. | 27 // Disables use of D3D11. |
25 const char kDisableD3D11[] = "disable-d3d11"; | 28 const char kDisableD3D11[] = "disable-d3d11"; |
26 | 29 |
27 // Stop the GPU from synchronizing on the vsync before presenting. | 30 // Stop the GPU from synchronizing on the vsync before presenting. |
28 const char kDisableGpuVsync[] = "disable-gpu-vsync"; | 31 const char kDisableGpuVsync[] = "disable-gpu-vsync"; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 kEnableGPUServiceLogging, | 81 kEnableGPUServiceLogging, |
79 kEnableGPUServiceTracing, | 82 kEnableGPUServiceTracing, |
80 kGpuNoContextLost, | 83 kGpuNoContextLost, |
81 kGpuSwitching, | 84 kGpuSwitching, |
82 }; | 85 }; |
83 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 86 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
84 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 87 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
85 | 88 |
86 } // namespace switches | 89 } // namespace switches |
87 | 90 |
OLD | NEW |