diff options
author | skyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-22 20:56:32 +0000 |
---|---|---|
committer | skyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-22 20:56:32 +0000 |
commit | ef915f53eaff99da21a38ae0575ce50e099ddf4e (patch) | |
tree | b176d60d3f81e8d4727466c46704c89fbee656bd /cc/trees/layer_tree_host_impl.h | |
parent | a53e5ed5ad7fefaec62abea5b721b992476673bc (diff) | |
download | chromium_src-ef915f53eaff99da21a38ae0575ce50e099ddf4e.zip chromium_src-ef915f53eaff99da21a38ae0575ce50e099ddf4e.tar.gz chromium_src-ef915f53eaff99da21a38ae0575ce50e099ddf4e.tar.bz2 |
cc: Use input events to trigger vsync
When we know that an input event is the last one to be delivered for the
current vsync interval, trigger the vsync event immediately instead of waiting
for one to be delivered over IPC. On Android devices this lets us start
rendering about 1 ms earlier than otherwise.
BUG=230336
Review URL: https://chromiumcodereview.appspot.com/13863006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195581 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_host_impl.h')
-rw-r--r-- | cc/trees/layer_tree_host_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h index c31fba1..f8e5ac3 100644 --- a/cc/trees/layer_tree_host_impl.h +++ b/cc/trees/layer_tree_host_impl.h @@ -72,6 +72,7 @@ class LayerTreeHostImplClient { virtual bool IsInsideDraw() = 0; virtual void RenewTreePriority() = 0; virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) = 0; + virtual void DidReceiveLastInputEventForVSync(base::TimeTicks frame_time) = 0; protected: virtual ~LayerTreeHostImplClient() {} @@ -113,6 +114,8 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient, base::TimeDelta duration) OVERRIDE; virtual void ScheduleAnimation() OVERRIDE; virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_port) OVERRIDE; + virtual void DidReceiveLastInputEventForVSync( + base::TimeTicks frame_time) OVERRIDE; // TopControlsManagerClient implementation. virtual void DidChangeTopControlsPosition() OVERRIDE; |