summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_host_impl.h
diff options
context:
space:
mode:
authorskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-26 22:28:45 +0000
committerskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-26 22:28:45 +0000
commit7ed4751b7860f7248ae7042465d3051867632c56 (patch)
tree4d2fc3b6525453b48461ceeae0611e21c4759648 /cc/trees/layer_tree_host_impl.h
parent5b409ba35802ce8eba4b3056c5787cf73f81c745 (diff)
downloadchromium_src-7ed4751b7860f7248ae7042465d3051867632c56.zip
chromium_src-7ed4751b7860f7248ae7042465d3051867632c56.tar.gz
chromium_src-7ed4751b7860f7248ae7042465d3051867632c56.tar.bz2
cc: Hook vsync time source to output surface
Let the output surface generate a vsync signal for the vsync time source. This will be used to drive rendering based on a vsync notification from the browser process. BUG=149227 TEST=LayerTreeHostTestVSyncNotification Review URL: https://chromiumcodereview.appspot.com/12674030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_host_impl.h')
-rw-r--r--cc/trees/layer_tree_host_impl.h3
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 6ef2f64..3025832 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -51,6 +51,7 @@ class LayerTreeHostImplClient {
virtual void OnSwapBuffersCompleteOnImplThread() = 0;
virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
base::TimeDelta interval) = 0;
+ virtual void DidVSync(base::TimeTicks frame_time) = 0;
virtual void OnCanDrawStateChanged(bool can_draw) = 0;
virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) = 0;
virtual void SetNeedsRedrawOnImplThread() = 0;
@@ -182,6 +183,7 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
// OutputSurfaceClient implementation.
virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
base::TimeDelta interval) OVERRIDE;
+ virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE;
virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck& ack)
OVERRIDE;
@@ -205,6 +207,7 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
const RendererCapabilities& GetRendererCapabilities() const;
virtual bool SwapBuffers();
+ void EnableVSyncNotification(bool enable);
void Readback(void* pixels, gfx::Rect rect_in_device_viewport);