Index: gpu/ipc/client/command_buffer_proxy_impl.cc |
diff --git a/gpu/ipc/client/command_buffer_proxy_impl.cc b/gpu/ipc/client/command_buffer_proxy_impl.cc |
index 34731027fbd7dfb1cd722a7e372ac85402b3e853..198fc4c3e1a3b6ed9cc9fa36262a8337c1ab1b90 100644 |
--- a/gpu/ipc/client/command_buffer_proxy_impl.cc |
+++ b/gpu/ipc/client/command_buffer_proxy_impl.cc |
@@ -67,7 +67,7 @@ CommandBufferProxyImpl::~CommandBufferProxyImpl() { |
} |
bool CommandBufferProxyImpl::OnMessageReceived(const IPC::Message& message) { |
- scoped_ptr<base::AutoLock> lock; |
+ std::unique_ptr<base::AutoLock> lock; |
if (lock_) |
lock.reset(new base::AutoLock(*lock_)); |
bool handled = true; |
@@ -90,7 +90,7 @@ bool CommandBufferProxyImpl::OnMessageReceived(const IPC::Message& message) { |
} |
void CommandBufferProxyImpl::OnChannelError() { |
- scoped_ptr<base::AutoLock> lock; |
+ std::unique_ptr<base::AutoLock> lock; |
if (lock_) |
lock.reset(new base::AutoLock(*lock_)); |
@@ -135,7 +135,7 @@ void CommandBufferProxyImpl::OnConsoleMessage( |
} |
void CommandBufferProxyImpl::AddDeletionObserver(DeletionObserver* observer) { |
- scoped_ptr<base::AutoLock> lock; |
+ std::unique_ptr<base::AutoLock> lock; |
if (lock_) |
lock.reset(new base::AutoLock(*lock_)); |
deletion_observers_.AddObserver(observer); |
@@ -143,7 +143,7 @@ void CommandBufferProxyImpl::AddDeletionObserver(DeletionObserver* observer) { |
void CommandBufferProxyImpl::RemoveDeletionObserver( |
DeletionObserver* observer) { |
- scoped_ptr<base::AutoLock> lock; |
+ std::unique_ptr<base::AutoLock> lock; |
if (lock_) |
lock.reset(new base::AutoLock(*lock_)); |
deletion_observers_.RemoveObserver(observer); |
@@ -352,7 +352,7 @@ scoped_refptr<gpu::Buffer> CommandBufferProxyImpl::CreateTransferBuffer( |
int32_t new_id = channel_->ReserveTransferBufferId(); |
- scoped_ptr<base::SharedMemory> shared_memory( |
+ std::unique_ptr<base::SharedMemory> shared_memory( |
channel_->factory()->AllocateSharedMemory(size)); |
if (!shared_memory) { |
if (last_state_.error == gpu::error::kNoError) |
@@ -476,7 +476,7 @@ int32_t CommandBufferProxyImpl::CreateGpuMemoryBufferImage( |
unsigned internal_format, |
unsigned usage) { |
CheckLock(); |
- scoped_ptr<gfx::GpuMemoryBuffer> buffer( |
+ std::unique_ptr<gfx::GpuMemoryBuffer> buffer( |
channel_->gpu_memory_buffer_manager()->AllocateGpuMemoryBuffer( |
gfx::Size(width, height), |
gpu::ImageFactory::DefaultBufferFormatForImageFormat(internal_format), |
@@ -726,7 +726,7 @@ void CommandBufferProxyImpl::InvalidGpuReply() { |
} |
void CommandBufferProxyImpl::InvalidGpuReplyOnClientThread() { |
- scoped_ptr<base::AutoLock> lock; |
+ std::unique_ptr<base::AutoLock> lock; |
if (lock_) |
lock.reset(new base::AutoLock(*lock_)); |
OnDestroyed(gpu::error::kInvalidGpuMessage, gpu::error::kLostContext); |