| Index: content/common/gpu/client/gpu_channel_host.cc
|
| diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
|
| index 6b1706cdbb614fb320611d359ac5ceb45b6eb5f8..05145f85b03645a393d385cea9e64706b90a1143 100644
|
| --- a/content/common/gpu/client/gpu_channel_host.cc
|
| +++ b/content/common/gpu/client/gpu_channel_host.cc
|
| @@ -238,9 +238,13 @@ scoped_ptr<CommandBufferProxyImpl> GpuChannelHost::CreateOffscreenCommandBuffer(
|
|
|
| int32 route_id = GenerateRouteID();
|
|
|
| + scoped_ptr<CommandBufferProxyImpl> command_buffer =
|
| + make_scoped_ptr(new CommandBufferProxyImpl(this, route_id, stream_id));
|
| +
|
| bool succeeded = false;
|
| if (!Send(new GpuChannelMsg_CreateOffscreenCommandBuffer(
|
| - size, init_params, route_id, &succeeded))) {
|
| + size, init_params, route_id, command_buffer->command_buffer_id(),
|
| + &succeeded))) {
|
| LOG(ERROR) << "Failed to send GpuChannelMsg_CreateOffscreenCommandBuffer.";
|
| return NULL;
|
| }
|
| @@ -251,8 +255,6 @@ scoped_ptr<CommandBufferProxyImpl> GpuChannelHost::CreateOffscreenCommandBuffer(
|
| return NULL;
|
| }
|
|
|
| - scoped_ptr<CommandBufferProxyImpl> command_buffer =
|
| - make_scoped_ptr(new CommandBufferProxyImpl(this, route_id, stream_id));
|
| AddRoute(route_id, command_buffer->AsWeakPtr());
|
|
|
| return command_buffer.Pass();
|
|
|