Index: cc/thread_proxy.cc |
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc |
index dde1b870c43c810667e58874225d380aa2bcb11d..f509943bbf8f1e74e73f0f804ba5aeab0301afa6 100644 |
--- a/cc/thread_proxy.cc |
+++ b/cc/thread_proxy.cc |
@@ -138,6 +138,19 @@ void ThreadProxy::requestStartPageScaleAnimationOnImplThread(gfx::Vector2d targe |
m_layerTreeHostImpl->startPageScaleAnimation(targetOffset, useAnchor, scale, base::TimeTicks::Now(), duration); |
} |
+void ThreadProxy::programmaticScroll(gfx::Vector2d targetOffset) |
+{ |
+ DCHECK(Proxy::isMainThread()); |
+ Proxy::implThread()->postTask(base::Bind(&ThreadProxy::requestProgrammaticScroll, m_implThreadWeakPtr, targetOffset)); |
+} |
+ |
+void ThreadProxy::requestProgrammaticScroll(gfx::Vector2d targetOffset) |
+{ |
+ DCHECK(Proxy::isImplThread()); |
+ if (m_layerTreeHostImpl.get()) |
+ m_layerTreeHostImpl->programmaticScroll(targetOffset); |
+} |
+ |
void ThreadProxy::finishAllRendering() |
{ |
DCHECK(Proxy::isMainThread()); |