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

Unified Diff: cc/layers/layer.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/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 1c6d8997cceb358489e4c4fcd0c0ffc6e7aaa52c..42c128948571b838634dc88cfb66c4a7139dd6b2 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -422,7 +422,7 @@ void Layer::RequestCopyOfOutput(
}
if (request->IsEmpty())
return;
- copy_requests_.push_back(request.Pass());
+ copy_requests_.push_back(std::move(request));
if (had_no_copy_requests) {
UpdateNumCopyRequestsForSubtree(1);
}
@@ -1161,7 +1161,7 @@ void Layer::SetPositionConstraint(const LayerPositionConstraint& constraint) {
static void RunCopyCallbackOnMainThread(scoped_ptr<CopyOutputRequest> request,
scoped_ptr<CopyOutputResult> result) {
- request->SendResult(result.Pass());
+ request->SendResult(std::move(result));
}
static void PostCopyCallbackToMainThread(
@@ -1309,7 +1309,7 @@ void Layer::PushPropertiesTo(LayerImpl* layer) {
base::Bind(&PostCopyCallbackToMainThread,
main_thread_task_runner,
base::Passed(&original_request)));
- main_thread_copy_requests.push_back(main_thread_request.Pass());
+ main_thread_copy_requests.push_back(std::move(main_thread_request));
}
if (!copy_requests_.empty() && layer_tree_host_)
layer_tree_host_->property_trees()->needs_rebuild = true;
@@ -1659,7 +1659,7 @@ bool Layer::AddAnimation(scoped_ptr <Animation> animation) {
UMA_HISTOGRAM_BOOLEAN("Renderer.AnimationAddedToOrphanLayer",
!layer_tree_host_);
- layer_animation_controller_->AddAnimation(animation.Pass());
+ layer_animation_controller_->AddAnimation(std::move(animation));
SetNeedsCommit();
return true;
}
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698