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 // IPC::Sender implementation: | 118 // IPC::Sender implementation: |
119 virtual bool Send(IPC::Message* msg) OVERRIDE; | 119 virtual bool Send(IPC::Message* msg) OVERRIDE; |
120 | 120 |
121 // Create and connect to a command buffer in the GPU process. | 121 // Create and connect to a command buffer in the GPU process. |
122 CommandBufferProxyImpl* CreateViewCommandBuffer( | 122 CommandBufferProxyImpl* CreateViewCommandBuffer( |
123 int32 surface_id, | 123 int32 surface_id, |
124 CommandBufferProxyImpl* share_group, | 124 CommandBufferProxyImpl* share_group, |
125 const std::string& allowed_extensions, | 125 const std::string& allowed_extensions, |
126 const std::vector<int32>& attribs, | 126 const std::vector<int32>& attribs, |
127 const GURL& active_url, | 127 const GURL& active_url, |
| 128 bool use_virtual_gl_context, |
128 gfx::GpuPreference gpu_preference); | 129 gfx::GpuPreference gpu_preference); |
129 | 130 |
130 // Create and connect to a command buffer in the GPU process. | 131 // Create and connect to a command buffer in the GPU process. |
131 CommandBufferProxyImpl* CreateOffscreenCommandBuffer( | 132 CommandBufferProxyImpl* CreateOffscreenCommandBuffer( |
132 const gfx::Size& size, | 133 const gfx::Size& size, |
133 CommandBufferProxyImpl* share_group, | 134 CommandBufferProxyImpl* share_group, |
134 const std::string& allowed_extensions, | 135 const std::string& allowed_extensions, |
135 const std::vector<int32>& attribs, | 136 const std::vector<int32>& attribs, |
136 const GURL& active_url, | 137 const GURL& active_url, |
| 138 bool use_virtual_gl_context, |
137 gfx::GpuPreference gpu_preference); | 139 gfx::GpuPreference gpu_preference); |
138 | 140 |
139 // Creates a video decoder in the GPU process. | 141 // Creates a video decoder in the GPU process. |
140 // Returned pointer is owned by the CommandBufferProxy for |route_id|. | 142 // Returned pointer is owned by the CommandBufferProxy for |route_id|. |
141 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( | 143 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( |
142 int command_buffer_route_id, | 144 int command_buffer_route_id, |
143 media::VideoCodecProfile profile, | 145 media::VideoCodecProfile profile, |
144 media::VideoDecodeAccelerator::Client* client); | 146 media::VideoDecodeAccelerator::Client* client); |
145 | 147 |
146 // Destroy a command buffer created by this channel. | 148 // Destroy a command buffer created by this channel. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 245 |
244 // Transfer buffer IDs are allocated in sequence. | 246 // Transfer buffer IDs are allocated in sequence. |
245 base::AtomicSequenceNumber next_transfer_buffer_id_; | 247 base::AtomicSequenceNumber next_transfer_buffer_id_; |
246 | 248 |
247 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 249 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
248 }; | 250 }; |
249 | 251 |
250 } // namespace content | 252 } // namespace content |
251 | 253 |
252 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ | 254 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ |
OLD | NEW |