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

Unified Diff: cc/ipc/cc_serialization_perftest.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/cc_param_traits_unittest.cc ('k') | cc/ipc/compositor_frame_struct_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/cc_serialization_perftest.cc
diff --git a/cc/ipc/cc_serialization_perftest.cc b/cc/ipc/cc_serialization_perftest.cc
index e903fa314047fcdb9d045d306e0bbe2e3fc36b5f..e7a4a5266da644ab4148a7bf04cfa2e9243fd9ed 100644
--- a/cc/ipc/cc_serialization_perftest.cc
+++ b/cc/ipc/cc_serialization_perftest.cc
@@ -198,6 +198,7 @@ class CCSerializationPerfTest : public testing::Test {
uint32_t num_passes,
UseSingleSharedQuadState single_sqs) {
CompositorFrame frame;
+ frame.delegated_frame_data.reset(new DelegatedFrameData);
for (uint32_t i = 0; i < num_passes; ++i) {
std::unique_ptr<RenderPass> render_pass = RenderPass::Create();
@@ -213,7 +214,8 @@ class CCSerializationPerfTest : public testing::Test {
quad->SetNew(render_pass->shared_quad_state_list.back(), bounds, bounds,
SK_ColorRED, kForceAntiAliasingOff);
}
- frame.render_pass_list.push_back(std::move(render_pass));
+ frame.delegated_frame_data->render_pass_list.push_back(
+ std::move(render_pass));
}
RunTest(test_name, std::move(frame));
}
« no previous file with comments | « cc/ipc/cc_param_traits_unittest.cc ('k') | cc/ipc/compositor_frame_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698