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

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: Address comments 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
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 166e6e2f971b2856e1f443ef8094b785c053e60f..7a8ae76e3e997730c30d4e125e9e39e905b28729 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -62,6 +62,8 @@ ThreadProxy::ThreadProxy(LayerTreeHost* layer_tree_host,
render_vsync_notification_enabled_(
layer_tree_host->settings().render_vsync_notification_enabled),
vsync_client_(NULL),
+ enable_synchronous_compositing_(
+ layer_tree_host->settings().enable_synchronous_compositing),
inside_draw_(false),
defer_commits_(false),
renew_tree_priority_on_impl_thread_pending_(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,
+ enable_synchronous_compositing_ ?
+ VSyncTimeSource::DISABLE_SYNCHRONOUSLY :
+ VSyncTimeSource::DISABLE_ON_NEXT_TICK)));
} else {
frame_rate_controller.reset(
new FrameRateController(DelayBasedTimeSource::Create(

Powered by Google App Engine
This is Rietveld 408576698