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 gl { | 8 namespace gl { |
9 | 9 |
10 const char kGLImplementationDesktopName[] = "desktop"; | 10 const char kGLImplementationDesktopName[] = "desktop"; |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 } // namespace gl | 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 in |
34 // gpu : Disable gpu vsync. | 34 // renderer compositors. |
| 35 // gpu: Disable display and browser vsync. |
35 // default: Set both flags. | 36 // default: Set both flags. |
36 const char kDisableGpuVsync[] = "disable-gpu-vsync"; | 37 const char kDisableGpuVsync[] = "disable-gpu-vsync"; |
37 | 38 |
38 // Turns on GPU logging (debug build only). | 39 // Turns on GPU logging (debug build only). |
39 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; | 40 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; |
40 | 41 |
41 // Turns on calling TRACE for every GL call. | 42 // Turns on calling TRACE for every GL call. |
42 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing"; | 43 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing"; |
43 | 44 |
44 // Select which ANGLE backend to use. Options are: | 45 // Select which ANGLE backend to use. Options are: |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 kDisableGLDrawingForTests, | 115 kDisableGLDrawingForTests, |
115 kOverrideUseGLWithOSMesaForTests, | 116 kOverrideUseGLWithOSMesaForTests, |
116 kUseANGLE, | 117 kUseANGLE, |
117 kDisableDirectComposition, | 118 kDisableDirectComposition, |
118 kEnableSwapBuffersWithDamage, | 119 kEnableSwapBuffersWithDamage, |
119 }; | 120 }; |
120 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 121 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
121 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 122 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
122 | 123 |
123 } // namespace switches | 124 } // namespace switches |
OLD | NEW |