Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 12674030: cc: Hook vsync time source to output surface (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 4dee1b3dfab32ce88e1454853b4688989c6ae328..1263a93e2b5c41785d23635a7dc1c357e7474b49 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -908,6 +908,10 @@ void LayerTreeHostImpl::OnVSyncParametersChanged(base::TimeTicks timebase,
client_->OnVSyncParametersChanged(timebase, interval);
}
+void LayerTreeHostImpl::DidVSync(base::TimeTicks frame_time) {
+ client_->DidVSync(frame_time);
+}
+
void LayerTreeHostImpl::OnSendFrameToParentCompositorAck(
const CompositorFrameAck& ack) {
if (!renderer_)
@@ -1025,6 +1029,11 @@ bool LayerTreeHostImpl::SwapBuffers() {
return renderer_->SwapBuffers();
}
+void LayerTreeHostImpl::EnableVSyncNotification(bool enable) {
+ if (output_surface_)
+ output_surface_->EnableVSyncNotification(enable);
+}
+
gfx::Size LayerTreeHostImpl::DeviceViewportSize() const {
return device_viewport_size();
}

Powered by Google App Engine
This is Rietveld 408576698