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

Unified Diff: cc/trees/layer_tree_host_unittest_context.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
Index: cc/trees/layer_tree_host_unittest_context.cc
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index 3bb21701a7667a313fcdbaf90591385d824918c5..86d999232572bbb24fc2dde2a1abf2e8f410acaf 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -100,9 +100,9 @@ class LayerTreeHostContextTest : public LayerTreeTest {
}
if (delegating_renderer())
- return FakeOutputSurface::CreateDelegating3d(context3d.Pass());
+ return FakeOutputSurface::CreateDelegating3d(std::move(context3d));
else
- return FakeOutputSurface::Create3d(context3d.Pass());
+ return FakeOutputSurface::Create3d(std::move(context3d));
}
DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl,
@@ -194,7 +194,7 @@ class LayerTreeHostContextTestLostContextSucceeds
scoped_ptr<OutputSurface> surface(
LayerTreeHostContextTest::CreateOutputSurface());
CHECK(surface);
- layer_tree_host()->SetOutputSurface(surface.Pass());
+ layer_tree_host()->SetOutputSurface(std::move(surface));
}
void DidInitializeOutputSurface() override {
@@ -408,7 +408,7 @@ class LayerTreeHostClientTakeAwayOutputSurface
LayerTreeHostContextTest::CreateOutputSurface();
CHECK(surface);
setos_counter_++;
- layer_tree_host()->SetOutputSurface(surface.Pass());
+ layer_tree_host()->SetOutputSurface(std::move(surface));
}
void HideAndReleaseOutputSurface() {
@@ -936,12 +936,12 @@ class LayerTreeHostContextTestDontUseLostResources
AddOneOfEveryQuadType(pass.get(), child_resource_provider_.get(),
RenderPassId(2, 1), &mailbox_sync_point);
- frame_data->render_pass_list.push_back(pass_for_quad.Pass());
- frame_data->render_pass_list.push_back(pass.Pass());
+ frame_data->render_pass_list.push_back(std::move(pass_for_quad));
+ frame_data->render_pass_list.push_back(std::move(pass));
delegated_resource_collection_ = new DelegatedFrameResourceCollection;
delegated_frame_provider_ = new DelegatedFrameProvider(
- delegated_resource_collection_.get(), frame_data.Pass());
+ delegated_resource_collection_.get(), std::move(frame_data));
ResourceId resource = child_resource_provider_->CreateResource(
gfx::Size(4, 4), ResourceProvider::TEXTURE_HINT_IMMUTABLE, RGBA_8888);
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation_timelines.cc ('k') | cc/trees/layer_tree_host_unittest_copyrequest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698