OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gfx/gl/gl_switches.h" | 5 #include "ui/gfx/gl/gl_switches.h" |
6 | 6 |
| 7 namespace gfx { |
| 8 |
| 9 const char kGLImplementationDesktopName[] = "desktop"; |
| 10 const char kGLImplementationOSMesaName[] = "osmesa"; |
| 11 const char kGLImplementationEGLName[] = "egl"; |
| 12 const char kGLImplementationMockName[] = "mock"; |
| 13 |
| 14 } // namespace gfx |
| 15 |
7 namespace switches { | 16 namespace switches { |
8 | 17 |
9 // Stop the GPU from synchronizing on the vsync before presenting. | 18 // Stop the GPU from synchronizing on the vsync before presenting. |
10 const char kDisableGpuVsync[] = "disable-gpu-vsync"; | 19 const char kDisableGpuVsync[] = "disable-gpu-vsync"; |
11 | 20 |
12 // Select which implementation of GL the GPU process should use. Options are: | 21 // Select which implementation of GL the GPU process should use. Options are: |
13 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac | 22 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac |
14 // default). | 23 // default). |
15 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually | 24 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually |
16 // ANGLE). | 25 // ANGLE). |
17 // osmesa: The OSMesa software renderer. | 26 // osmesa: The OSMesa software renderer. |
18 const char kUseGL[] = "use-gl"; | 27 const char kUseGL[] = "use-gl"; |
19 | 28 |
20 // Turns on GPU logging (debug build only). | 29 // Turns on GPU logging (debug build only). |
21 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; | 30 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; |
22 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; | 31 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; |
23 | 32 |
24 } // namespace switches | 33 } // namespace switches |
OLD | NEW |