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 8a1f8a4dd08e62351d437747cafa07980e258b87..6046fc93a3014757d51b278d58b0829ef5e6eed5 100644 |
--- a/gpu/ipc/service/gpu_channel_manager.cc |
+++ b/gpu/ipc/service/gpu_channel_manager.cc |
@@ -9,6 +9,7 @@ |
#include "base/bind.h" |
#include "base/location.h" |
+#include "base/memory/ptr_util.h" |
#include "base/single_thread_task_runner.h" |
#include "base/thread_task_runner_handle.h" |
#include "build/build_config.h" |
@@ -142,13 +143,13 @@ GpuChannel* GpuChannelManager::LookupChannel(int32_t client_id) const { |
return it != gpu_channels_.end() ? it->second : nullptr; |
} |
-scoped_ptr<GpuChannel> GpuChannelManager::CreateGpuChannel( |
+std::unique_ptr<GpuChannel> GpuChannelManager::CreateGpuChannel( |
int client_id, |
uint64_t client_tracing_id, |
bool preempts, |
bool allow_view_command_buffers, |
bool allow_real_time_streams) { |
- return make_scoped_ptr( |
+ 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(), |
@@ -162,7 +163,7 @@ IPC::ChannelHandle GpuChannelManager::EstablishChannel( |
bool preempts, |
bool allow_view_command_buffers, |
bool allow_real_time_streams) { |
- scoped_ptr<GpuChannel> channel( |
+ std::unique_ptr<GpuChannel> channel( |
CreateGpuChannel(client_id, client_tracing_id, preempts, |
allow_view_command_buffers, allow_real_time_streams)); |
IPC::ChannelHandle channel_handle = channel->Init(shutdown_event_); |