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

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: Review tweaks. 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36659f54319650a115266e2858959aa0dc0f5201..fc8b0d73a8c9d0cf31df18c76732494eca18c95d 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -909,6 +909,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_)
@@ -1026,6 +1030,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();
}
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698