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

Unified Diff: cc/output/copy_output_result.h

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/output/copy_output_request.cc ('k') | cc/output/copy_output_result.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/copy_output_result.h
diff --git a/cc/output/copy_output_result.h b/cc/output/copy_output_result.h
index 3662818ef4118a5c573156b58b6b6673ee8ccf46..57f0cca66effcfa36a01467306569648937fdddf 100644
--- a/cc/output/copy_output_result.h
+++ b/cc/output/copy_output_result.h
@@ -23,14 +23,14 @@ class CC_EXPORT CopyOutputResult {
}
static scoped_ptr<CopyOutputResult> CreateBitmapResult(
scoped_ptr<SkBitmap> bitmap) {
- return make_scoped_ptr(new CopyOutputResult(bitmap.Pass()));
+ return make_scoped_ptr(new CopyOutputResult(std::move(bitmap)));
}
static scoped_ptr<CopyOutputResult> CreateTextureResult(
const gfx::Size& size,
const TextureMailbox& texture_mailbox,
scoped_ptr<SingleReleaseCallback> release_callback) {
- return make_scoped_ptr(
- new CopyOutputResult(size, texture_mailbox, release_callback.Pass()));
+ return make_scoped_ptr(new CopyOutputResult(size, texture_mailbox,
+ std::move(release_callback)));
}
~CopyOutputResult();
« no previous file with comments | « cc/output/copy_output_request.cc ('k') | cc/output/copy_output_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698