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

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 187970 and update test 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/layer_tree_host_impl.h ('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 b3053c0fe8ca091556cf2ae5ea19eefa6761bcea..2c28e88a193d21cc528856c1866d414491ff0f26 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -1235,4 +1235,15 @@ void ThreadProxy::renewTreePriorityOnImplThread()
RenewTreePriority();
}
+void ThreadProxy::RequestScrollbarAnimationOnImplThread(double delay) {
+ Proxy::ImplThread()->postDelayedTask(
+ base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread,
+ m_implThreadWeakPtr),
+ delay * 1000.0);
+}
+
+void ThreadProxy::StartScrollbarAnimationOnImplThread() {
+ m_layerTreeHostImpl->StartScrollbarAnimation(base::TimeTicks::Now());
+}
+
} // namespace cc
« cc/layer_tree_host_impl.h ('K') | « cc/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698