summaryrefslogtreecommitdiffstats
path: root/cc/test/test_shared_bitmap_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test/test_shared_bitmap_manager.cc')
-rw-r--r--cc/test/test_shared_bitmap_manager.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/test/test_shared_bitmap_manager.cc b/cc/test/test_shared_bitmap_manager.cc
index e985572..d7716dd 100644
--- a/cc/test/test_shared_bitmap_manager.cc
+++ b/cc/test/test_shared_bitmap_manager.cc
@@ -25,7 +25,7 @@ scoped_ptr<SharedBitmap> TestSharedBitmapManager::AllocateSharedBitmap(
memory->CreateAndMapAnonymous(size.GetArea() * 4);
SharedBitmapId id = SharedBitmap::GenerateId();
bitmap_map_[id] = memory.get();
- return scoped_ptr<SharedBitmap>(
+ return make_scoped_ptr(
new SharedBitmap(memory.release(), id, base::Bind(&FreeSharedBitmap)));
}
@@ -34,8 +34,8 @@ scoped_ptr<SharedBitmap> TestSharedBitmapManager::GetSharedBitmapFromId(
const SharedBitmapId& id) {
base::AutoLock lock(lock_);
if (bitmap_map_.find(id) == bitmap_map_.end())
- return scoped_ptr<SharedBitmap>();
- return scoped_ptr<SharedBitmap>(
+ return nullptr;
+ return make_scoped_ptr(
new SharedBitmap(bitmap_map_[id], id, base::Bind(&IgnoreSharedBitmap)));
}
@@ -44,7 +44,7 @@ scoped_ptr<SharedBitmap> TestSharedBitmapManager::GetBitmapForSharedMemory(
base::AutoLock lock(lock_);
SharedBitmapId id = SharedBitmap::GenerateId();
bitmap_map_[id] = memory;
- return scoped_ptr<SharedBitmap>(
+ return make_scoped_ptr(
new SharedBitmap(memory, id, base::Bind(&IgnoreSharedBitmap)));
}