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

Unified Diff: gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc

Issue 2257713003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc
diff --git a/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc b/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc
index 8549d93c50c96515685d523688a81bd2b8255c54..e867917160d6e696aee714fa0c85b7309decee80 100644
--- a/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc
+++ b/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc
@@ -94,8 +94,8 @@ GpuMemoryBufferImplSharedMemory::CreateFromHandle(
return base::WrapUnique(new GpuMemoryBufferImplSharedMemory(
handle.id, size, format, callback,
- base::WrapUnique(new base::SharedMemory(handle.handle, false)),
- handle.offset, handle.stride));
+ base::MakeUnique<base::SharedMemory>(handle.handle, false), handle.offset,
+ handle.stride));
}
// static
« no previous file with comments | « gpu/ipc/client/android/in_process_surface_texture_manager.cc ('k') | gpu/ipc/service/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698