WebView: Make draws asynchronous during fling and tick on renderer side
Tick fling animations at the beginning of the frame, on the renderer side. This is done by calling OnComputeScroll directly from SynchronousCompositorProxy::OnBeginFrame rather than sending the ipc message from the browser side. However, we have to send the ipc once, since we shouldn't tick fling animations if a view has overridden OnComputeScroll. Previously, draws after calls to OnComputeScroll were synchronous so that child views would scroll with the webview. This change makes draws after OnComputeScroll asynchronous and ticks fling animations during BeginFrame. Bug: 801759 Change-Id: Iaf95ecc44586ae212630602b38b3ab570b27132b Reviewed-on: https://chromium-review.googlesource.com/894176 Commit-Queue: James Wallace-Lee <jamwalla@chromium.org> Reviewed-by:Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#537375}
Showing
Please register or sign in to comment