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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 1113493007: Allow cc::STP::SetNeedsAnimate to request another commit from a commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enable TP test for STP Created 5 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/layer_tree_host_unittest_animation.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index b9f6a4849131dfa14431b6f7a0b48dd4fe81fab9..8d543d28a18e6c3239ba0d448f62e49034bf9cf6 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -178,7 +178,8 @@ void SingleThreadProxy::SetNeedsAnimate() {
TRACE_EVENT0("cc", "SingleThreadProxy::SetNeedsAnimate");
DCHECK(Proxy::IsMainThread());
client_->ScheduleAnimation();
- SetNeedsCommit();
+ DebugScopedSetImplThread impl(this);
+ SetNeedsCommitOnImplThread();
danakj 2015/04/28 20:00:44 This would ScheduleComposite twice, and we should
}
void SingleThreadProxy::SetNeedsUpdateLayers() {
@@ -336,8 +337,7 @@ void SingleThreadProxy::SetNeedsCommit() {
if (commit_requested_)
return;
DebugScopedSetImplThread impl(this);
- if (scheduler_on_impl_thread_)
- scheduler_on_impl_thread_->SetNeedsCommit();
+ SetNeedsCommitOnImplThread();
commit_requested_ = true;
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698