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

Unified Diff: cc/ipc/compositor_frame_struct_traits.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/ipc/compositor_frame_struct_traits.h ('k') | cc/ipc/struct_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/compositor_frame_struct_traits.cc
diff --git a/cc/ipc/compositor_frame_struct_traits.cc b/cc/ipc/compositor_frame_struct_traits.cc
index e3d5442855a752282ea5f16cf7f5f13e4b354a08..8f884e25856046e83839d02da058e2fb1692f1eb 100644
--- a/cc/ipc/compositor_frame_struct_traits.cc
+++ b/cc/ipc/compositor_frame_struct_traits.cc
@@ -17,8 +17,9 @@ bool StructTraits<cc::mojom::CompositorFrameDataView,
if (!data.ReadMetadata(&out->metadata))
return false;
- return data.ReadResources(&out->resource_list) &&
- data.ReadPasses(&out->render_pass_list);
+ out->delegated_frame_data.reset(new cc::DelegatedFrameData());
+ return data.ReadResources(&out->delegated_frame_data->resource_list) &&
+ data.ReadPasses(&out->delegated_frame_data->render_pass_list);
}
} // namespace mojo
« no previous file with comments | « cc/ipc/compositor_frame_struct_traits.h ('k') | cc/ipc/struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698