| 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 switches { | 7 namespace switches { |
| 8 | 8 |
| 9 // Stop the GPU from synchronizing on the vsync before presenting. | 9 // Stop the GPU from synchronizing on the vsync before presenting. |
| 10 const char kDisableGpuVsync[] = "disable-gpu-vsync"; | 10 const char kDisableGpuVsync[] = "disable-gpu-vsync"; |
| 11 | 11 |
| 12 // Turns on GPU logging (debug build only). |
| 13 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; |
| 14 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; |
| 15 |
| 12 // Select which implementation of GL the GPU process should use. Options are: | 16 // Select which implementation of GL the GPU process should use. Options are: |
| 13 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac | 17 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac |
| 14 // default). | 18 // default). |
| 15 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually | 19 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually |
| 16 // ANGLE). | 20 // ANGLE). |
| 17 // osmesa: The OSMesa software renderer. | 21 // osmesa: The OSMesa software renderer. |
| 18 const char kUseGL[] = "use-gl"; | 22 const char kUseGL[] = "use-gl"; |
| 19 | 23 |
| 20 // Turns on GPU logging (debug build only). | 24 // Inform Chrome that a GPU context will not be lost in power saving mode, |
| 21 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; | 25 // screen saving mode, etc. Note that this flag does not ensure that a GPU |
| 22 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; | 26 // context will never be lost in any situations, say, a GPU reset. |
| 27 const char kGpuNoContextLost[] = "gpu-no-context-lost"; |
| 23 | 28 |
| 24 } // namespace switches | 29 } // namespace switches |
| OLD | NEW |