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

Unified Diff: cc/surfaces/surface_aggregator_perftest.cc

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix reflector 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
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..97b8eeb9fc7abad90a16d603151a30e259c6d8a2 100644
--- a/cc/surfaces/surface_aggregator_perftest.cc
+++ b/cc/surfaces/surface_aggregator_perftest.cc
@@ -90,7 +90,7 @@ class SurfaceAggregatorPerfTest : public testing::Test {
}
frame_data->render_pass_list.push_back(std::move(pass));
- std::unique_ptr<CompositorFrame> frame(new CompositorFrame);
+ std::unique_ptr<CompositorFrame> frame(CompositorFrame::Create());
frame->delegated_frame_data = std::move(frame_data);
factory_.SubmitCompositorFrame(SurfaceId(0, i, 0), std::move(frame),
SurfaceFactory::DrawCallback());
@@ -115,7 +115,7 @@ 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);
+ std::unique_ptr<CompositorFrame> frame(CompositorFrame::Create());
frame->delegated_frame_data = std::move(frame_data);
factory_.SubmitCompositorFrame(SurfaceId(0, num_surfaces + 1, 0),
std::move(frame),

Powered by Google App Engine
This is Rietveld 408576698