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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2503203002: Revert "Getting rid of DelegatedFrameData" (Closed)
Patch Set: Created 4 years, 1 month 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/test/test_compositor_frame_sink.cc ('k') | cc/trees/layer_tree_host_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 7e2f952623c3500498154af8dae210e8679e25cd..c986b16079881dc15b289d59bd0353d38aa69655 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1655,12 +1655,13 @@ bool LayerTreeHostImpl::DrawLayers(FrameData* frame) {
}
}
+ auto data = base::MakeUnique<DelegatedFrameData>();
+ resource_provider_->PrepareSendToParent(resources, &data->resource_list);
+ data->render_pass_list = std::move(frame->render_passes);
CompositorFrame compositor_frame;
compositor_frame.metadata = std::move(metadata);
- resource_provider_->PrepareSendToParent(resources,
- &compositor_frame.resource_list);
- compositor_frame.render_pass_list = std::move(frame->render_passes);
+ compositor_frame.delegated_frame_data = std::move(data);
compositor_frame_sink_->SubmitCompositorFrame(std::move(compositor_frame));
// The next frame should start by assuming nothing has changed, and changes
« no previous file with comments | « cc/test/test_compositor_frame_sink.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698