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 "base/macros.h" | 5 #include "base/macros.h" |
6 #include "ui/gl/gl_switches.h" | 6 #include "ui/gl/gl_switches.h" |
7 | 7 |
8 namespace gfx { | 8 namespace gl { |
9 | 9 |
10 const char kGLImplementationDesktopName[] = "desktop"; | 10 const char kGLImplementationDesktopName[] = "desktop"; |
11 const char kGLImplementationOSMesaName[] = "osmesa"; | 11 const char kGLImplementationOSMesaName[] = "osmesa"; |
12 const char kGLImplementationAppleName[] = "apple"; | 12 const char kGLImplementationAppleName[] = "apple"; |
13 const char kGLImplementationEGLName[] = "egl"; | 13 const char kGLImplementationEGLName[] = "egl"; |
14 const char kGLImplementationANGLEName[] = "angle"; | 14 const char kGLImplementationANGLEName[] = "angle"; |
15 const char kGLImplementationSwiftShaderName[] = "swiftshader"; | 15 const char kGLImplementationSwiftShaderName[] = "swiftshader"; |
16 const char kGLImplementationMockName[] = "mock"; | 16 const char kGLImplementationMockName[] = "mock"; |
17 | 17 |
18 const char kANGLEImplementationDefaultName[] = "default"; | 18 const char kANGLEImplementationDefaultName[] = "default"; |
19 const char kANGLEImplementationD3D9Name[] = "d3d9"; | 19 const char kANGLEImplementationD3D9Name[] = "d3d9"; |
20 const char kANGLEImplementationD3D11Name[] = "d3d11"; | 20 const char kANGLEImplementationD3D11Name[] = "d3d11"; |
21 const char kANGLEImplementationOpenGLName[] = "gl"; | 21 const char kANGLEImplementationOpenGLName[] = "gl"; |
22 const char kANGLEImplementationOpenGLESName[] = "gles"; | 22 const char kANGLEImplementationOpenGLESName[] = "gles"; |
23 | 23 |
24 } // namespace gfx | 24 } // namespace gl |
25 | 25 |
26 namespace switches { | 26 namespace switches { |
27 | 27 |
28 // Disables use of D3D11. | 28 // Disables use of D3D11. |
29 const char kDisableD3D11[] = "disable-d3d11"; | 29 const char kDisableD3D11[] = "disable-d3d11"; |
30 | 30 |
31 // Stop the GPU from synchronizing on the vsync before presenting. | 31 // Stop the GPU from synchronizing on the vsync before presenting. |
32 // We can select from the options below: | 32 // We can select from the options below: |
33 // beginframe : Next frame can start without any delay on cc::scheduler. | 33 // beginframe : Next frame can start without any delay on cc::scheduler. |
34 // gpu : Disable gpu vsync. | 34 // gpu : Disable gpu vsync. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 kDisableGLDrawingForTests, | 106 kDisableGLDrawingForTests, |
107 kOverrideUseGLWithOSMesaForTests, | 107 kOverrideUseGLWithOSMesaForTests, |
108 kUseANGLE, | 108 kUseANGLE, |
109 kDisableDirectComposition, | 109 kDisableDirectComposition, |
110 }; | 110 }; |
111 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 111 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
112 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 112 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
113 | 113 |
114 } // namespace switches | 114 } // namespace switches |
115 | 115 |
OLD | NEW |