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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11833009: Provide a vsync notification to the renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 10 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/layer_tree_host_impl.h ('k') | cc/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/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 23d3a2ef24cb3c4947132397e2fbeaf6ecb5534e..053788e5160a35c3f7be5926f5639509ac9a19b3 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -238,6 +238,11 @@ OutputSurface* LayerTreeHostImpl::outputSurface() const
return m_outputSurface.get();
}
+void LayerTreeHostImpl::enableVSyncNotification(bool enable)
+{
+ m_outputSurface->EnableVSyncNotification(enable);
+}
+
void LayerTreeHostImpl::animate(base::TimeTicks monotonicTime, base::Time wallClockTime)
{
animatePageScale(monotonicTime);
@@ -753,6 +758,11 @@ void LayerTreeHostImpl::OnSendFrameToParentCompositorAck(const CompositorFrameAc
m_renderer->receiveCompositorFrameAck(ack);
}
+void LayerTreeHostImpl::DidVSync(base::TimeTicks frameTime)
+{
+ m_client->didVSync(frameTime);
+}
+
void LayerTreeHostImpl::OnCanDrawStateChangedForTree(LayerTreeImpl*)
{
m_client->onCanDrawStateChanged(canDraw());
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698