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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_switches.cc
diff --git a/ui/gl/gl_switches.cc b/ui/gl/gl_switches.cc
index dbf0e6e153ee2a27426214deb21332ea82e20719..f75b828325cd5d10a953eb0031c3a2a80f693167 100644
--- a/ui/gl/gl_switches.cc
+++ b/ui/gl/gl_switches.cc
@@ -112,6 +112,9 @@ const char kDisableGLExtensions[] = "disable-gl-extensions";
// Use EGL_KHR_swap_buffers_with_damage to implement PostSubBuffers
const char kEnableSwapBuffersWithDamage[] = "enable-swap-buffers-with-damage";
+// Wait for D3D VSync signals in GPU process.
+const char kUseD3DVSync[] = "use-d3d-vsync";
+
// This is the list of switches passed from this file that are passed from the
// GpuProcessHost to the GPU Process. Add your switch to this list if you need
// to read it in the GPU process, else don't add it.
@@ -127,7 +130,7 @@ const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
kUseANGLE,
kDisableDirectComposition,
kEnableSwapBuffersWithDamage,
-};
+ kUseD3DVSync};
stanisc 2017/01/12 00:52:50 TODO: revert formatting
const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
arraysize(kGLSwitchesCopiedFromGpuProcessHost);

Powered by Google App Engine
This is Rietveld 408576698