OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/renderer/gpu_channel_host.h" | 5 #include "content/renderer/gpu_channel_host.h" |
6 | 6 |
7 #include "chrome/renderer/command_buffer_proxy.h" | |
8 #include "chrome/renderer/gpu_video_service_host.h" | |
9 #include "chrome/renderer/render_thread.h" | 7 #include "chrome/renderer/render_thread.h" |
10 #include "content/common/child_process.h" | 8 #include "content/common/child_process.h" |
11 #include "content/common/gpu_messages.h" | 9 #include "content/common/gpu_messages.h" |
| 10 #include "content/renderer/command_buffer_proxy.h" |
| 11 #include "content/renderer/gpu_video_service_host.h" |
12 | 12 |
13 GpuChannelHost::GpuChannelHost() : state_(kUnconnected) { | 13 GpuChannelHost::GpuChannelHost() : state_(kUnconnected) { |
14 } | 14 } |
15 | 15 |
16 GpuChannelHost::~GpuChannelHost() { | 16 GpuChannelHost::~GpuChannelHost() { |
17 } | 17 } |
18 | 18 |
19 void GpuChannelHost::Connect( | 19 void GpuChannelHost::Connect( |
20 const IPC::ChannelHandle& channel_handle, | 20 const IPC::ChannelHandle& channel_handle, |
21 base::ProcessHandle renderer_process_for_gpu) { | 21 base::ProcessHandle renderer_process_for_gpu) { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // Check the proxy has not already been removed after a channel error. | 169 // Check the proxy has not already been removed after a channel error. |
170 int route_id = command_buffer->route_id(); | 170 int route_id = command_buffer->route_id(); |
171 if (proxies_.find(command_buffer->route_id()) != proxies_.end()) { | 171 if (proxies_.find(command_buffer->route_id()) != proxies_.end()) { |
172 proxies_.erase(route_id); | 172 proxies_.erase(route_id); |
173 router_.RemoveRoute(route_id); | 173 router_.RemoveRoute(route_id); |
174 } | 174 } |
175 | 175 |
176 delete command_buffer; | 176 delete command_buffer; |
177 #endif | 177 #endif |
178 } | 178 } |
OLD | NEW |