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

Unified Diff: cc/raster/staging_buffer_pool.cc

Issue 2258833002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months 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/raster/one_copy_raster_buffer_provider.cc ('k') | cc/test/fake_image_serialization_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/staging_buffer_pool.cc
diff --git a/cc/raster/staging_buffer_pool.cc b/cc/raster/staging_buffer_pool.cc
index 99fb43843105ece60a3ac000cbd3236ce601c003..ade400d9906ad3c07a5b92280775f3c91644e6ab 100644
--- a/cc/raster/staging_buffer_pool.cc
+++ b/cc/raster/staging_buffer_pool.cc
@@ -305,8 +305,8 @@ std::unique_ptr<StagingBuffer> StagingBufferPool::AcquireStagingBuffer(
// Create new staging buffer if necessary.
if (!staging_buffer) {
- staging_buffer = base::WrapUnique(
- new StagingBuffer(resource->size(), resource->format()));
+ staging_buffer =
+ base::MakeUnique<StagingBuffer>(resource->size(), resource->format());
AddStagingBuffer(staging_buffer.get(), resource->format());
}
« no previous file with comments | « cc/raster/one_copy_raster_buffer_provider.cc ('k') | cc/test/fake_image_serialization_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698