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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11472004: cc: Add receiver for CompositorFrameAck in LayerTreeHostImpl and forward it to the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | cc/renderer.h » ('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 f4710ca0a00b281b82066593fd00868f28f1f2f0..c110fc99d254a9c2cdba5fa85591b91bc4184d0c 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -796,9 +796,13 @@ void LayerTreeHostImpl::OnVSyncParametersChanged(base::TimeTicks timebase, base:
m_client->onVSyncParametersChanged(timebase, interval);
}
-void LayerTreeHostImpl::OnSendFrameToParentCompositorAck(const CompositorFrameAck&)
+void LayerTreeHostImpl::OnSendFrameToParentCompositorAck(const CompositorFrameAck& ack)
{
- // TODO(danakj): Implement this.
+ if (!m_renderer)
+ return;
+
+ // TODO(piman): We may need to do some validation on this ack before processing it.
+ m_renderer->receiveCompositorFrameAck(ack);
}
void LayerTreeHostImpl::OnCanDrawStateChangedForTree(LayerTreeImpl*)
« no previous file with comments | « no previous file | cc/renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698