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

Unified Diff: cc/test/test_gpu_memory_buffer_manager.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/test/remote_proto_channel_bridge.cc ('k') | cc/test/test_layer_tree_host_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_gpu_memory_buffer_manager.cc
diff --git a/cc/test/test_gpu_memory_buffer_manager.cc b/cc/test/test_gpu_memory_buffer_manager.cc
index 8cf4e47e86df9882ad727975004d9c77746e91a1..fdf073e56ff4da02a855312541f28c1472a2e976 100644
--- a/cc/test/test_gpu_memory_buffer_manager.cc
+++ b/cc/test/test_gpu_memory_buffer_manager.cc
@@ -183,8 +183,8 @@ TestGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle(
last_gpu_memory_buffer_id_ += 1;
std::unique_ptr<gfx::GpuMemoryBuffer> result(new GpuMemoryBufferImpl(
this, last_gpu_memory_buffer_id_, size, format,
- base::WrapUnique(new base::SharedMemory(handle.handle, false)),
- handle.offset, handle.stride));
+ base::MakeUnique<base::SharedMemory>(handle.handle, false), handle.offset,
+ handle.stride));
buffers_[last_gpu_memory_buffer_id_] = result.get();
return result;
}
« no previous file with comments | « cc/test/remote_proto_channel_bridge.cc ('k') | cc/test/test_layer_tree_host_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698