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

Unified Diff: ui/compositor/compositor.cc

Issue 199523002: cc: Throttle swaps in Scheduler instead of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 9 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
« cc/scheduler/frame_rate_controller_unittest.cc ('K') | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 25503728b1b3d582099667f6619e37406d946cb8..7fdc93ecb0b7886b7c110a926a143ba9c79aa32a 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -212,6 +212,8 @@ Compositor::Compositor(gfx::AcceleratedWidget widget)
: kDefaultRefreshRate;
settings.main_frame_before_draw_enabled = false;
settings.main_frame_before_activation_enabled = false;
+ settings.throttle_frame_production =
+ !command_line->HasSwitch(switches::kDisableGpuVsync);
brianderson 2014/03/13 21:11:52 This is needed to get aura-based platforms to hono
Sami 2014/03/14 15:34:58 +1 for a separate patch so we can more easily tell
settings.partial_swap_enabled =
!command_line->HasSwitch(cc::switches::kUIDisablePartialSwap);
#if defined(OS_CHROMEOS)
« cc/scheduler/frame_rate_controller_unittest.cc ('K') | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698