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

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 | « cc/layer_tree_host_impl.h ('k') | 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 8f32526fbc635f0ef6ac3375c45755e1b89b4618..9983bbf2395ae2889ad808a96417c506ecc1980c 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -816,6 +816,17 @@ void LayerTreeHostImpl::onVSyncParametersChanged(double monotonicTimebase, doubl
m_client->onVSyncParametersChanged(timebase, interval);
}
+void LayerTreeHostImpl::onSendFrameToParentCompositorAck(const WebKit::WebCompositorFrameAck& webAck)
+{
+ if (!m_renderer)
+ return;
+
+ // TODO(piman): We may need to do some validation on this ack before processing it.
+ // TODO(danakj): This cast goes away when we move WebCompositorOutputSurface to cc::OutputSurface.
+ const CompositorFrameAck& ack = reinterpret_cast<const CompositorFrameAck&>(webAck);
piman 2012/12/06 18:07:05 In the mean time, can we just make CompositorFrame
+ m_renderer->receiveCompositorFrameAck(ack);
+}
+
void LayerTreeHostImpl::drawLayers(FrameData& frame)
{
TRACE_EVENT0("cc", "LayerTreeHostImpl::drawLayers");
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698