| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 const std::string& allowed_extensions, | 120 const std::string& allowed_extensions, |
| 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 // Returned pointer is owned by the CommandBufferProxy for |route_id|. | 126 // Returned pointer is owned by the CommandBufferProxy for |route_id|. |
| 127 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( | 127 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( |
| 128 int command_buffer_route_id, | 128 int command_buffer_route_id, |
| 129 media::VideoCodecProfile profile, | 129 media::VideoCodecProfile profile, |
| 130 const gfx::Size& frame_size, |
| 131 const std::vector<uint8_t>& extra_data, |
| 130 media::VideoDecodeAccelerator::Client* client); | 132 media::VideoDecodeAccelerator::Client* client); |
| 131 | 133 |
| 132 // Destroy a command buffer created by this channel. | 134 // Destroy a command buffer created by this channel. |
| 133 void DestroyCommandBuffer(CommandBufferProxy* command_buffer); | 135 void DestroyCommandBuffer(CommandBufferProxy* command_buffer); |
| 134 | 136 |
| 135 // Add a route for the current message loop. | 137 // Add a route for the current message loop. |
| 136 void AddRoute(int route_id, base::WeakPtr<IPC::Channel::Listener> listener); | 138 void AddRoute(int route_id, base::WeakPtr<IPC::Channel::Listener> listener); |
| 137 void RemoveRoute(int route_id); | 139 void RemoveRoute(int route_id); |
| 138 | 140 |
| 139 // Asks the GPU process whether the creation or destruction of the | 141 // Asks the GPU process whether the creation or destruction of the |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // for calls from contexts that may live on the compositor or main thread. | 204 // for calls from contexts that may live on the compositor or main thread. |
| 203 mutable base::Lock context_lock_; | 205 mutable base::Lock context_lock_; |
| 204 | 206 |
| 205 // A filter for sending messages from thread other than the main thread. | 207 // A filter for sending messages from thread other than the main thread. |
| 206 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; | 208 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; |
| 207 | 209 |
| 208 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 210 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
| 209 }; | 211 }; |
| 210 | 212 |
| 211 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ | 213 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ |
| OLD | NEW |