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

Unified Diff: gpu/ipc/service/gpu_channel_manager.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
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc ('k') | gpu/ipc/service/gpu_channel_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel_manager.cc
diff --git a/gpu/ipc/service/gpu_channel_manager.cc b/gpu/ipc/service/gpu_channel_manager.cc
index 6d3f7b6bf82f93171944aa4ace5cd9f53058d45a..3eee28432c225deb4b401363f40287b5a3a64ae5 100644
--- a/gpu/ipc/service/gpu_channel_manager.cc
+++ b/gpu/ipc/service/gpu_channel_manager.cc
@@ -127,12 +127,12 @@ std::unique_ptr<GpuChannel> GpuChannelManager::CreateGpuChannel(
bool preempts,
bool allow_view_command_buffers,
bool allow_real_time_streams) {
- return base::WrapUnique(
- new GpuChannel(this, sync_point_manager(), watchdog_, share_group(),
- mailbox_manager(), preempts ? preemption_flag() : nullptr,
- preempts ? nullptr : preemption_flag(), task_runner_.get(),
- io_task_runner_.get(), client_id, client_tracing_id,
- allow_view_command_buffers, allow_real_time_streams));
+ return base::MakeUnique<GpuChannel>(
+ this, sync_point_manager(), watchdog_, share_group(), mailbox_manager(),
+ preempts ? preemption_flag() : nullptr,
+ preempts ? nullptr : preemption_flag(), task_runner_.get(),
+ io_task_runner_.get(), client_id, client_tracing_id,
+ allow_view_command_buffers, allow_real_time_streams);
}
IPC::ChannelHandle GpuChannelManager::EstablishChannel(
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc ('k') | gpu/ipc/service/gpu_channel_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698