OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 scoped_ptr<media::VideoDecodeAccelerator> CreateVideoDecoder( | 123 scoped_ptr<media::VideoDecodeAccelerator> CreateVideoDecoder( |
124 int command_buffer_route_id); | 124 int command_buffer_route_id); |
125 | 125 |
126 // Creates a video encoder in the GPU process. | 126 // Creates a video encoder in the GPU process. |
127 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncoder( | 127 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncoder( |
128 int command_buffer_route_id); | 128 int command_buffer_route_id); |
129 | 129 |
130 // Destroy a command buffer created by this channel. | 130 // Destroy a command buffer created by this channel. |
131 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); | 131 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); |
132 | 132 |
| 133 // Destroy this channel. |
| 134 void DestroyChannel(); |
| 135 |
133 // Add a route for the current message loop. | 136 // Add a route for the current message loop. |
134 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); | 137 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); |
135 void RemoveRoute(int route_id); | 138 void RemoveRoute(int route_id); |
136 | 139 |
137 GpuChannelHostFactory* factory() const { return factory_; } | 140 GpuChannelHostFactory* factory() const { return factory_; } |
138 | 141 |
139 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() const { | 142 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() const { |
140 return gpu_memory_buffer_manager_; | 143 return gpu_memory_buffer_manager_; |
141 } | 144 } |
142 | 145 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // Used to look up a proxy from its routing id. | 245 // Used to look up a proxy from its routing id. |
243 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; | 246 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; |
244 ProxyMap proxies_; | 247 ProxyMap proxies_; |
245 | 248 |
246 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 249 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
247 }; | 250 }; |
248 | 251 |
249 } // namespace content | 252 } // namespace content |
250 | 253 |
251 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ | 254 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ |
OLD | NEW |