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

Unified Diff: cc/surfaces/surface_aggregator_perftest.cc

Issue 2098953003: Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed exo unittests Created 4 years, 6 months 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/surfaces/surface_aggregator.cc ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator_perftest.cc
diff --git a/cc/surfaces/surface_aggregator_perftest.cc b/cc/surfaces/surface_aggregator_perftest.cc
index 9c24baed33d2c83cf3046724aea1a27c4449b047..d9037435f2bc3cf4e7f6b26d5eeb7a2b87fb9b7e 100644
--- a/cc/surfaces/surface_aggregator_perftest.cc
+++ b/cc/surfaces/surface_aggregator_perftest.cc
@@ -90,8 +90,8 @@ class SurfaceAggregatorPerfTest : public testing::Test {
}
frame_data->render_pass_list.push_back(std::move(pass));
- std::unique_ptr<CompositorFrame> frame(new CompositorFrame);
- frame->delegated_frame_data = std::move(frame_data);
+ CompositorFrame frame;
+ frame.delegated_frame_data = std::move(frame_data);
factory_.SubmitCompositorFrame(SurfaceId(0, i, 0), std::move(frame),
SurfaceFactory::DrawCallback());
}
@@ -115,13 +115,13 @@ class SurfaceAggregatorPerfTest : public testing::Test {
pass->damage_rect = gfx::Rect(0, 0, 1, 1);
frame_data->render_pass_list.push_back(std::move(pass));
- std::unique_ptr<CompositorFrame> frame(new CompositorFrame);
- frame->delegated_frame_data = std::move(frame_data);
+ CompositorFrame frame;
+ frame.delegated_frame_data = std::move(frame_data);
factory_.SubmitCompositorFrame(SurfaceId(0, num_surfaces + 1, 0),
std::move(frame),
SurfaceFactory::DrawCallback());
- std::unique_ptr<CompositorFrame> aggregated =
+ CompositorFrame aggregated =
aggregator_->Aggregate(SurfaceId(0, num_surfaces + 1, 0));
timer_.NextLap();
} while (!timer_.HasTimeLimitExpired());
« no previous file with comments | « cc/surfaces/surface_aggregator.cc ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698