diff options
author | yusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 18:23:55 +0000 |
---|---|---|
committer | yusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 18:23:55 +0000 |
commit | 9b2c7efc81f639c201df203ad0ce5373bff0e095 (patch) | |
tree | 8ad9f3b814c4778bc7e43f11933c26ac23cf7959 /cc/layer_tree_host.cc | |
parent | c1626d9dca299ec837949f9d10b952c91f40e1e3 (diff) | |
download | chromium_src-9b2c7efc81f639c201df203ad0ce5373bff0e095.zip chromium_src-9b2c7efc81f639c201df203ad0ce5373bff0e095.tar.gz chromium_src-9b2c7efc81f639c201df203ad0ce5373bff0e095.tar.bz2 |
Add API to route end of fling messages from WebLayerTreeView to InputHandler
This API will be used by WebViewImpl to send end of fling messages to the
compositor. Then the compositor will only send flingCancels if there is a
main thread fling. This flingCancels when unnecessarily sent are causing
a lot of input lag when main thread is blocked.
BUG=162767
Review URL: https://chromiumcodereview.appspot.com/11565022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host.cc')
-rw-r--r-- | cc/layer_tree_host.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc index 9d7b6f3..70e1620 100644 --- a/cc/layer_tree_host.cc +++ b/cc/layer_tree_host.cc @@ -222,6 +222,11 @@ void LayerTreeHost::updateAnimations(base::TimeTicks frameBeginTime) m_renderingStats.numAnimationFrames++; } +void LayerTreeHost::didStopFlinging() +{ + m_proxy->mainThreadHasStoppedFlinging(); +} + void LayerTreeHost::layout() { m_client->layout(); |