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 { | 7 namespace gfx { |
8 | 8 |
9 const char kGLImplementationDesktopName[] = "desktop"; | 9 const char kGLImplementationDesktopName[] = "desktop"; |
10 const char kGLImplementationOSMesaName[] = "osmesa"; | 10 const char kGLImplementationOSMesaName[] = "osmesa"; |
| 11 const char kGLImplementationAppleName[] = "apple"; |
11 const char kGLImplementationEGLName[] = "egl"; | 12 const char kGLImplementationEGLName[] = "egl"; |
12 const char kGLImplementationSwiftShaderName[] = "swiftshader"; | 13 const char kGLImplementationSwiftShaderName[] = "swiftshader"; |
13 const char kGLImplementationMockName[] = "mock"; | 14 const char kGLImplementationMockName[] = "mock"; |
14 | 15 |
15 } // namespace gfx | 16 } // namespace gfx |
16 | 17 |
17 namespace switches { | 18 namespace switches { |
18 | 19 |
19 // Stop the GPU from synchronizing on the vsync before presenting. | 20 // Stop the GPU from synchronizing on the vsync before presenting. |
20 const char kDisableGpuVsync[] = "disable-gpu-vsync"; | 21 const char kDisableGpuVsync[] = "disable-gpu-vsync"; |
(...skipping 11 matching lines...) Expand all Loading... |
32 const char kUseGL[] = "use-gl"; | 33 const char kUseGL[] = "use-gl"; |
33 | 34 |
34 const char kSwiftShaderPath[] = "swiftshader-path"; | 35 const char kSwiftShaderPath[] = "swiftshader-path"; |
35 | 36 |
36 // Inform Chrome that a GPU context will not be lost in power saving mode, | 37 // Inform Chrome that a GPU context will not be lost in power saving mode, |
37 // screen saving mode, etc. Note that this flag does not ensure that a GPU | 38 // screen saving mode, etc. Note that this flag does not ensure that a GPU |
38 // context will never be lost in any situations, say, a GPU reset. | 39 // context will never be lost in any situations, say, a GPU reset. |
39 const char kGpuNoContextLost[] = "gpu-no-context-lost"; | 40 const char kGpuNoContextLost[] = "gpu-no-context-lost"; |
40 | 41 |
41 } // namespace switches | 42 } // namespace switches |
OLD | NEW |