summaryrefslogtreecommitdiffstats
path: root/cc/test/test_shared_bitmap_manager.cc
diff options
context:
space:
mode:
authordanakj <danakj@chromium.org>2015-11-18 12:40:55 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-18 20:41:32 +0000
commit78c30f07606287bc3238b50fbc7438c0d0a79361 (patch)
treecdca505caabdd9c58638e71876b171582e1063bb /cc/test/test_shared_bitmap_manager.cc
parenta04855af140e24ed3ec3f59da178837b3d32d9c4 (diff)
downloadchromium_src-78c30f07606287bc3238b50fbc7438c0d0a79361.zip
chromium_src-78c30f07606287bc3238b50fbc7438c0d0a79361.tar.gz
chromium_src-78c30f07606287bc3238b50fbc7438c0d0a79361.tar.bz2
cc: Replace Pass() with std::move() in some subdirs.
This hits the following: cc/playback/ cc/raster/ cc/test/ cc/tiles/ R=enne, vmpstr BUG=557422 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1455753003 Cr-Commit-Position: refs/heads/master@{#360406}
Diffstat (limited to 'cc/test/test_shared_bitmap_manager.cc')
-rw-r--r--cc/test/test_shared_bitmap_manager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/test/test_shared_bitmap_manager.cc b/cc/test/test_shared_bitmap_manager.cc
index 7e14b2f..ef3b484 100644
--- a/cc/test/test_shared_bitmap_manager.cc
+++ b/cc/test/test_shared_bitmap_manager.cc
@@ -14,7 +14,7 @@ class OwnedSharedBitmap : public SharedBitmap {
OwnedSharedBitmap(scoped_ptr<base::SharedMemory> shared_memory,
const SharedBitmapId& id)
: SharedBitmap(static_cast<uint8*>(shared_memory->memory()), id),
- shared_memory_(shared_memory.Pass()) {}
+ shared_memory_(std::move(shared_memory)) {}
~OwnedSharedBitmap() override {}
@@ -35,7 +35,7 @@ scoped_ptr<SharedBitmap> TestSharedBitmapManager::AllocateSharedBitmap(
memory->CreateAndMapAnonymous(size.GetArea() * 4);
SharedBitmapId id = SharedBitmap::GenerateId();
bitmap_map_[id] = memory.get();
- return make_scoped_ptr(new OwnedSharedBitmap(memory.Pass(), id));
+ return make_scoped_ptr(new OwnedSharedBitmap(std::move(memory), id));
}
scoped_ptr<SharedBitmap> TestSharedBitmapManager::GetSharedBitmapFromId(