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

Unified Diff: cc/trees/layer_tree_host_unittest_copyrequest.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/trees/layer_tree_host_unittest_context.cc ('k') | cc/trees/layer_tree_host_unittest_delegated.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_copyrequest.cc
diff --git a/cc/trees/layer_tree_host_unittest_copyrequest.cc b/cc/trees/layer_tree_host_unittest_copyrequest.cc
index 4340241e72c628a44a9469a0d1688e8197527ff7..a11ad9546407fd0e0530a0953e09866489d7a95c 100644
--- a/cc/trees/layer_tree_host_unittest_copyrequest.cc
+++ b/cc/trees/layer_tree_host_unittest_copyrequest.cc
@@ -610,7 +610,7 @@ class LayerTreeHostCopyRequestTestLostOutputSurface
// Save the result for later.
EXPECT_FALSE(result_);
- result_ = result.Pass();
+ result_ = std::move(result);
// Post a commit to lose the output surface.
layer_tree_host()->SetNeedsCommit();
@@ -846,7 +846,7 @@ class LayerTreeHostCopyRequestTestProvideTexture
TextureMailbox(mailbox, sync_token_, GL_TEXTURE_2D));
EXPECT_TRUE(request->has_texture_mailbox());
- copy_layer_->RequestCopyOfOutput(request.Pass());
+ copy_layer_->RequestCopyOfOutput(std::move(request));
}
void AfterTest() override {
@@ -907,7 +907,7 @@ class LayerTreeHostCopyRequestTestDestroyBeforeCopy
base::Bind(&LayerTreeHostCopyRequestTestDestroyBeforeCopy::
CopyOutputCallback,
base::Unretained(this)));
- copy_layer_->RequestCopyOfOutput(request.Pass());
+ copy_layer_->RequestCopyOfOutput(std::move(request));
layer_tree_host()->SetViewportSize(gfx::Size());
break;
@@ -984,7 +984,7 @@ class LayerTreeHostCopyRequestTestShutdownBeforeCopy
base::Bind(&LayerTreeHostCopyRequestTestShutdownBeforeCopy::
CopyOutputCallback,
base::Unretained(this)));
- copy_layer_->RequestCopyOfOutput(request.Pass());
+ copy_layer_->RequestCopyOfOutput(std::move(request));
layer_tree_host()->SetViewportSize(gfx::Size());
break;
« no previous file with comments | « cc/trees/layer_tree_host_unittest_context.cc ('k') | cc/trees/layer_tree_host_unittest_delegated.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698