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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 134623005: Make SingleThreadProxy a SchedulerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More danakj review Created 6 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: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 5972a9f8303986a65849be5b35357767753d8066..ed3e9df0851dec07a15a7991a533a3e77ddadaa7 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -711,11 +711,12 @@ void LayerTreeHost::NotifyInputThrottledUntilCommit() {
}
void LayerTreeHost::Composite(base::TimeTicks frame_begin_time) {
- if (!proxy_->HasImplThread())
- static_cast<SingleThreadProxy*>(proxy_.get())->CompositeImmediately(
- frame_begin_time);
- else
+ if (!proxy_->HasImplThread()) {
+ static_cast<SingleThreadProxy*>(proxy_.get())
+ ->CompositeImmediately(frame_begin_time);
+ } else {
SetNeedsCommit();
+ }
}
bool LayerTreeHost::InitializeOutputSurfaceIfNeeded() {

Powered by Google App Engine
This is Rietveld 408576698