Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: ui/gl/gl_switches.cc

Issue 2555173003: [Do not submit] D3DKMTWaitForVerticalBlankEvent VSync prototype (Closed)
Patch Set: Added command line switch and experiment support Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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.
116 const char kUseD3DVSync[] = "use-d3d-vsync";
117
115 // This is the list of switches passed from this file that are passed from the 118 // 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 119 // 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. 120 // to read it in the GPU process, else don't add it.
118 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 121 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
119 kDisableGpuVsync, 122 kDisableGpuVsync,
120 kDisableD3D11, 123 kDisableD3D11,
121 kEnableGPUServiceLogging, 124 kEnableGPUServiceLogging,
122 kEnableGPUServiceTracing, 125 kEnableGPUServiceTracing,
123 kEnableSgiVideoSync, 126 kEnableSgiVideoSync,
124 kGpuNoContextLost, 127 kGpuNoContextLost,
125 kDisableGLDrawingForTests, 128 kDisableGLDrawingForTests,
126 kOverrideUseGLWithOSMesaForTests, 129 kOverrideUseGLWithOSMesaForTests,
127 kUseANGLE, 130 kUseANGLE,
128 kDisableDirectComposition, 131 kDisableDirectComposition,
129 kEnableSwapBuffersWithDamage, 132 kEnableSwapBuffersWithDamage,
130 }; 133 kUseD3DVSync};
stanisc 2017/01/12 00:52:50 TODO: revert formatting
131 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 134 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
132 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 135 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
133 136
134 } // namespace switches 137 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698