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

Unified Diff: cc/surfaces/surface_aggregator_perftest.cc

Issue 1455023002: cc: Replace Pass() with std::move() in some subdirs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-cc
Patch Set: pass-cc2: . Created 5 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/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 95085c3b634c85b076d4c82cca9bd6b5f403fdaa..c6e4234f79e3720eabaa0c2a6219deb68931521e 100644
--- a/cc/surfaces/surface_aggregator_perftest.cc
+++ b/cc/surfaces/surface_aggregator_perftest.cc
@@ -96,10 +96,10 @@ class SurfaceAggregatorPerfTest : public testing::Test {
SurfaceId(i - 1));
}
- frame_data->render_pass_list.push_back(pass.Pass());
+ frame_data->render_pass_list.push_back(std::move(pass));
scoped_ptr<CompositorFrame> frame(new CompositorFrame);
- frame->delegated_frame_data = frame_data.Pass();
- factory_.SubmitCompositorFrame(SurfaceId(i), frame.Pass(),
+ frame->delegated_frame_data = std::move(frame_data);
+ factory_.SubmitCompositorFrame(SurfaceId(i), std::move(frame),
SurfaceFactory::DrawCallback());
}
@@ -120,10 +120,11 @@ class SurfaceAggregatorPerfTest : public testing::Test {
else
pass->damage_rect = gfx::Rect(0, 0, 1, 1);
- frame_data->render_pass_list.push_back(pass.Pass());
+ frame_data->render_pass_list.push_back(std::move(pass));
scoped_ptr<CompositorFrame> frame(new CompositorFrame);
- frame->delegated_frame_data = frame_data.Pass();
- factory_.SubmitCompositorFrame(SurfaceId(num_surfaces + 1), frame.Pass(),
+ frame->delegated_frame_data = std::move(frame_data);
+ factory_.SubmitCompositorFrame(SurfaceId(num_surfaces + 1),
+ std::move(frame),
SurfaceFactory::DrawCallback());
scoped_ptr<CompositorFrame> aggregated =
« 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