| Index: content/common/gpu/client/command_buffer_proxy_impl.cc
|
| diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
|
| index fb10b429d2b5a21785060d992acac7d0673d37ec..d8f0d19409661749b9f06b5d077108352db99df7 100644
|
| --- a/content/common/gpu/client/command_buffer_proxy_impl.cc
|
| +++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
|
| @@ -132,7 +132,7 @@ void CommandBufferProxyImpl::SetChannelErrorCallback(
|
| bool CommandBufferProxyImpl::Initialize() {
|
| shared_state_shm_.reset(channel_->factory()->AllocateSharedMemory(
|
| sizeof(*shared_state())).release());
|
| - if (!shared_state_shm_.get())
|
| + if (!shared_state_shm_)
|
| return false;
|
|
|
| if (!shared_state_shm_->Map(sizeof(*shared_state())))
|
| @@ -255,7 +255,7 @@ gpu::Buffer CommandBufferProxyImpl::CreateTransferBuffer(size_t size,
|
|
|
| scoped_ptr<base::SharedMemory> shared_memory(
|
| channel_->factory()->AllocateSharedMemory(size));
|
| - if (!shared_memory.get())
|
| + if (!shared_memory)
|
| return gpu::Buffer();
|
|
|
| DCHECK(!shared_memory->memory());
|
|
|