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

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: Add more test expectations 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
« cc/test/layer_tree_test_common.cc ('K') | « 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 6c10d482511b90932aa69aa90b97b6d844d8acd7..367e47489daa0b49623abb66ea3d75a8cb4f5357 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -1316,7 +1316,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;
}
@@ -1328,4 +1328,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
« cc/test/layer_tree_test_common.cc ('K') | « cc/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698