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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 11414308: Add vsync notification command line switch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 10 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: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index f5859489faa3d563b2f32caf80c4a74ab7021b00..3da31f597929e1902672665736cdf78f223a314c 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -495,6 +495,8 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
command_line.HasSwitch(switches::kShowPaintRects);
prefs.render_vsync_enabled =
!command_line.HasSwitch(switches::kDisableGpuVsync);
+ prefs.render_vsync_notification_enabled =
+ command_line.HasSwitch(cc::switches::kEnableVsyncNotification);
prefs.accelerated_compositing_enabled =
GpuProcessHost::gpu_enabled() &&
!command_line.HasSwitch(switches::kDisableAcceleratedCompositing);

Powered by Google App Engine
This is Rietveld 408576698