OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/renderer/gpu_channel_host.h" | 5 #include "content/renderer/gpu/gpu_channel_host.h" |
6 | 6 |
7 #include "content/common/child_process.h" | 7 #include "content/common/child_process.h" |
8 #include "content/common/gpu/gpu_messages.h" | 8 #include "content/common/gpu/gpu_messages.h" |
9 #include "content/renderer/command_buffer_proxy.h" | 9 #include "content/renderer/gpu/command_buffer_proxy.h" |
10 #include "content/renderer/gpu_surface_proxy.h" | 10 #include "content/renderer/gpu/gpu_surface_proxy.h" |
11 #include "content/renderer/gpu_video_service_host.h" | 11 #include "content/renderer/gpu/gpu_video_service_host.h" |
| 12 #include "content/renderer/gpu/transport_texture_service.h" |
12 #include "content/renderer/render_thread.h" | 13 #include "content/renderer/render_thread.h" |
13 #include "content/renderer/transport_texture_service.h" | |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 | 15 |
16 GpuChannelHost::GpuChannelHost() | 16 GpuChannelHost::GpuChannelHost() |
17 : state_(kUnconnected), | 17 : state_(kUnconnected), |
18 gpu_video_service_host_(new GpuVideoServiceHost()), | 18 gpu_video_service_host_(new GpuVideoServiceHost()), |
19 transport_texture_service_(new TransportTextureService()) { | 19 transport_texture_service_(new TransportTextureService()) { |
20 } | 20 } |
21 | 21 |
22 GpuChannelHost::~GpuChannelHost() { | 22 GpuChannelHost::~GpuChannelHost() { |
23 } | 23 } |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 void GpuChannelHost::DestroySurface(GpuSurfaceProxy* surface) { | 204 void GpuChannelHost::DestroySurface(GpuSurfaceProxy* surface) { |
205 #if defined(ENABLE_GPU) | 205 #if defined(ENABLE_GPU) |
206 Send(new GpuChannelMsg_DestroySurface(surface->route_id())); | 206 Send(new GpuChannelMsg_DestroySurface(surface->route_id())); |
207 if (router_.ResolveRoute(surface->route_id())) | 207 if (router_.ResolveRoute(surface->route_id())) |
208 router_.RemoveRoute(surface->route_id()); | 208 router_.RemoveRoute(surface->route_id()); |
209 | 209 |
210 delete surface; | 210 delete surface; |
211 #endif | 211 #endif |
212 } | 212 } |
OLD | NEW |