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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 CommandBufferProxyImpl* CreateOffscreenCommandBuffer( | 118 CommandBufferProxyImpl* CreateOffscreenCommandBuffer( |
119 const gfx::Size& size, | 119 const gfx::Size& size, |
120 CommandBufferProxyImpl* share_group, | 120 CommandBufferProxyImpl* share_group, |
121 const std::vector<int32>& attribs, | 121 const std::vector<int32>& attribs, |
122 const GURL& active_url, | 122 const GURL& active_url, |
123 gfx::GpuPreference gpu_preference); | 123 gfx::GpuPreference gpu_preference); |
124 | 124 |
125 // Creates a video decoder in the GPU process. | 125 // Creates a video decoder in the GPU process. |
126 scoped_ptr<media::VideoDecodeAccelerator> CreateVideoDecoder( | 126 scoped_ptr<media::VideoDecodeAccelerator> CreateVideoDecoder( |
127 int command_buffer_route_id, | 127 int command_buffer_route_id, |
128 media::VideoCodecProfile profile, | 128 media::VideoCodecProfile profile); |
129 media::VideoDecodeAccelerator::Client* client); | |
130 | 129 |
131 // Creates a video encoder in the GPU process. | 130 // Creates a video encoder in the GPU process. |
132 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncoder( | 131 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncoder(); |
133 media::VideoEncodeAccelerator::Client* client); | |
134 | 132 |
135 // Destroy a command buffer created by this channel. | 133 // Destroy a command buffer created by this channel. |
136 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); | 134 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); |
137 | 135 |
138 // Add a route for the current message loop. | 136 // Add a route for the current message loop. |
139 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); | 137 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); |
140 void RemoveRoute(int route_id); | 138 void RemoveRoute(int route_id); |
141 | 139 |
142 GpuChannelHostFactory* factory() const { return factory_; } | 140 GpuChannelHostFactory* factory() const { return factory_; } |
143 | 141 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // Used to look up a proxy from its routing id. | 229 // Used to look up a proxy from its routing id. |
232 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; | 230 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; |
233 ProxyMap proxies_; | 231 ProxyMap proxies_; |
234 | 232 |
235 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 233 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
236 }; | 234 }; |
237 | 235 |
238 } // namespace content | 236 } // namespace content |
239 | 237 |
240 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ | 238 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ |
OLD | NEW |