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

Unified Diff: cc/thread_proxy.cc

Issue 12408028: cc: Delay start of scrollbar animation setNeedsRedraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 188682 Created 7 years, 9 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/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/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index 0d8beb16d81ef13e34f1e1b2d06ed556a8813f87..661ba7756b7b04ee8d0d43b1ab2dcbd79129c7dd 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -1315,7 +1315,7 @@ void ThreadProxy::RenewTreePriority() {
Proxy::ImplThread()->PostDelayedTask(
base::Bind(&ThreadProxy::RenewTreePriorityOnImplThread,
weak_factory_on_impl_thread_.GetWeakPtr()),
- delay.InMilliseconds());
+ delay);
renew_tree_priority_on_impl_thread_pending_ = true;
}
@@ -1327,4 +1327,15 @@ void ThreadProxy::RenewTreePriorityOnImplThread() {
RenewTreePriority();
}
+void ThreadProxy::RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) {
+ Proxy::ImplThread()->PostDelayedTask(
+ base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread,
+ impl_thread_weak_ptr_),
+ delay);
+}
+
+void ThreadProxy::StartScrollbarAnimationOnImplThread() {
+ layer_tree_host_impl_->StartScrollbarAnimation(base::TimeTicks::Now());
+}
+
} // namespace cc
« no previous file with comments | « cc/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698