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

Unified Diff: cc/trees/thread_proxy.cc

Issue 14898002: Add LayerTreeHostSettings for synchronous compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove blank line Created 7 years, 8 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
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 166e6e2f971b2856e1f443ef8094b785c053e60f..23c91c672d4bb88f33fb41c62358828e361eedf1 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -61,6 +61,8 @@ ThreadProxy::ThreadProxy(LayerTreeHost* layer_tree_host,
render_vsync_enabled_(layer_tree_host->settings().render_vsync_enabled),
render_vsync_notification_enabled_(
layer_tree_host->settings().render_vsync_notification_enabled),
+ synchronously_disable_vsync_(
+ layer_tree_host->settings().synchronously_disable_vsync),
vsync_client_(NULL),
inside_draw_(false),
defer_commits_(false),
@@ -1114,7 +1116,11 @@ void ThreadProxy::InitializeImplOnImplThread(
if (render_vsync_enabled_) {
if (render_vsync_notification_enabled_) {
frame_rate_controller.reset(
- new FrameRateController(VSyncTimeSource::Create(this)));
+ new FrameRateController(VSyncTimeSource::Create(
+ this,
+ synchronously_disable_vsync_ ?
+ VSyncTimeSource::DISABLE_SYNCHRONOUSLY :
+ VSyncTimeSource::DISABLE_ON_NEXT_TICK)));
} else {
frame_rate_controller.reset(
new FrameRateController(DelayBasedTimeSource::Create(
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698