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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Forces the use of OSMesa instead of hardware gpu. | 105 // Forces the use of OSMesa instead of hardware gpu. |
106 const char kOverrideUseGLWithOSMesaForTests[] = | 106 const char kOverrideUseGLWithOSMesaForTests[] = |
107 "override-use-gl-with-osmesa-for-tests"; | 107 "override-use-gl-with-osmesa-for-tests"; |
108 | 108 |
109 // Disables specified comma separated GL Extensions if found. | 109 // Disables specified comma separated GL Extensions if found. |
110 const char kDisableGLExtensions[] = "disable-gl-extensions"; | 110 const char kDisableGLExtensions[] = "disable-gl-extensions"; |
111 | 111 |
112 // Use EGL_KHR_swap_buffers_with_damage to implement PostSubBuffers | 112 // Use EGL_KHR_swap_buffers_with_damage to implement PostSubBuffers |
113 const char kEnableSwapBuffersWithDamage[] = "enable-swap-buffers-with-damage"; | 113 const char kEnableSwapBuffersWithDamage[] = "enable-swap-buffers-with-damage"; |
114 | 114 |
| 115 // Wait for D3D VSync signals in GPU process (as opposed to delay based VSync |
| 116 // generated in Browser process based on VSync parameters). |
| 117 const char kUseD3DVSync[] = "use-d3d-vsync"; |
| 118 |
115 // This is the list of switches passed from this file that are passed from the | 119 // This is the list of switches passed from this file that are passed from the |
116 // GpuProcessHost to the GPU Process. Add your switch to this list if you need | 120 // GpuProcessHost to the GPU Process. Add your switch to this list if you need |
117 // to read it in the GPU process, else don't add it. | 121 // to read it in the GPU process, else don't add it. |
118 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 122 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
119 kDisableGpuVsync, | 123 kDisableGpuVsync, |
120 kDisableD3D11, | 124 kDisableD3D11, |
121 kEnableGPUServiceLogging, | 125 kEnableGPUServiceLogging, |
122 kEnableGPUServiceTracing, | 126 kEnableGPUServiceTracing, |
123 kEnableSgiVideoSync, | 127 kEnableSgiVideoSync, |
124 kGpuNoContextLost, | 128 kGpuNoContextLost, |
125 kDisableGLDrawingForTests, | 129 kDisableGLDrawingForTests, |
126 kOverrideUseGLWithOSMesaForTests, | 130 kOverrideUseGLWithOSMesaForTests, |
127 kUseANGLE, | 131 kUseANGLE, |
128 kDisableDirectComposition, | 132 kDisableDirectComposition, |
129 kEnableSwapBuffersWithDamage, | 133 kEnableSwapBuffersWithDamage, |
| 134 kUseD3DVSync |
130 }; | 135 }; |
131 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 136 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
132 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 137 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
133 | 138 |
134 } // namespace switches | 139 } // namespace switches |
OLD | NEW |