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

Unified Diff: cc/trees/thread_proxy.cc

Issue 14195025: Keep vsync enabled while there is a pending requestAnimationFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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') | no next file » | 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 3cc54e64b5524c134e4f3232982201e5925e1b1b..0ce230b9da54cad15177e0a5a3e93ce2fbbf433e 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -268,6 +268,9 @@ void ThreadProxy::SetNeedsAnimate() {
TRACE_EVENT0("cc", "ThreadProxy::SetNeedsAnimate");
animate_requested_ = true;
+ Proxy::ImplThread()->PostTask(base::Bind(
+ &ThreadProxy::SetAnimateRequestedOnImplThread, impl_thread_weak_ptr_));
+
if (commit_request_sent_to_impl_thread_)
return;
commit_request_sent_to_impl_thread_ = true;
@@ -367,6 +370,12 @@ void ThreadProxy::SetNeedsCommitOnImplThread() {
scheduler_on_impl_thread_->SetNeedsCommit();
}
+void ThreadProxy::SetAnimateRequestedOnImplThread() {
+ DCHECK(IsImplThread());
+ TRACE_EVENT0("cc", "ThreadProxy::SetAnimateRequestedOnImplThread");
+ scheduler_on_impl_thread_->SetAnimateRequested();
+}
+
void ThreadProxy::SetNeedsManageTilesOnImplThread() {
if (manage_tiles_pending_)
return;
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698