Chromium Code Reviews| Index: gpu/ipc/client/gpu_channel_host.cc |
| diff --git a/gpu/ipc/client/gpu_channel_host.cc b/gpu/ipc/client/gpu_channel_host.cc |
| index be6a3f79d6c16c9d500f10e50735ad7694d09a6a..6f1cee1e8663597179ed67dab5dc2ee5f3339fd3 100644 |
| --- a/gpu/ipc/client/gpu_channel_host.cc |
| +++ b/gpu/ipc/client/gpu_channel_host.cc |
| @@ -197,7 +197,8 @@ std::unique_ptr<CommandBufferProxyImpl> GpuChannelHost::CreateCommandBuffer( |
| gpu::GpuStreamPriority stream_priority, |
| const std::vector<int32_t>& attribs, |
| const GURL& active_url, |
| - gfx::GpuPreference gpu_preference) { |
| + gfx::GpuPreference gpu_preference, |
| + scoped_refptr<base::SingleThreadTaskRunner> task_runner) { |
| DCHECK(!share_group || (stream_id == share_group->stream_id())); |
| TRACE_EVENT1("gpu", "GpuChannelHost::CreateViewCommandBuffer", |
| "surface_handle", surface_handle); |
| @@ -237,7 +238,7 @@ std::unique_ptr<CommandBufferProxyImpl> GpuChannelHost::CreateCommandBuffer( |
| std::unique_ptr<CommandBufferProxyImpl> command_buffer = |
| base::WrapUnique(new CommandBufferProxyImpl(this, route_id, stream_id)); |
| - AddRoute(route_id, command_buffer->AsWeakPtr()); |
| + AddRouteWithTaskRunner(route_id, command_buffer->AsWeakPtr(), task_runner); |
|
piman
2016/05/11 17:06:14
nit: std::move(task_runner)
|
| if (!command_buffer->Initialize()) |
| return nullptr; |