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 #ifndef CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ | 5 #ifndef CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ |
6 #define CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ | 6 #define CONTENT_RENDERER_GPU_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 CommandBufferProxy* CreateOffscreenCommandBuffer( | 77 CommandBufferProxy* CreateOffscreenCommandBuffer( |
78 const gfx::Size& size, | 78 const gfx::Size& size, |
79 const std::string& allowed_extensions, | 79 const std::string& allowed_extensions, |
80 const std::vector<int32>& attribs, | 80 const std::vector<int32>& attribs, |
81 const GURL& active_url); | 81 const GURL& active_url); |
82 | 82 |
83 // Creates a video decoder in the GPU process. | 83 // Creates a video decoder in the GPU process. |
84 // Returned pointer is owned by the CommandBufferProxy for |route_id|. | 84 // Returned pointer is owned by the CommandBufferProxy for |route_id|. |
85 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( | 85 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( |
86 int command_buffer_route_id, | 86 int command_buffer_route_id, |
87 const std::vector<uint32>& configs, | 87 const std::vector<int32>& configs, |
88 media::VideoDecodeAccelerator::Client* client); | 88 media::VideoDecodeAccelerator::Client* client); |
89 | 89 |
90 // Destroy a command buffer created by this channel. | 90 // Destroy a command buffer created by this channel. |
91 void DestroyCommandBuffer(CommandBufferProxy* command_buffer); | 91 void DestroyCommandBuffer(CommandBufferProxy* command_buffer); |
92 | 92 |
93 // Create a surface in the GPU process. Returns null on failure. | 93 // Create a surface in the GPU process. Returns null on failure. |
94 GpuSurfaceProxy* CreateOffscreenSurface(const gfx::Size& size); | 94 GpuSurfaceProxy* CreateOffscreenSurface(const gfx::Size& size); |
95 | 95 |
96 // Destroy a surface in the GPU process. | 96 // Destroy a surface in the GPU process. |
97 void DestroySurface(GpuSurfaceProxy* surface); | 97 void DestroySurface(GpuSurfaceProxy* surface); |
(...skipping 19 matching lines...) Expand all Loading... |
117 ProxyMap proxies_; | 117 ProxyMap proxies_; |
118 | 118 |
119 // This is a MessageFilter to intercept IPC messages related to transport | 119 // This is a MessageFilter to intercept IPC messages related to transport |
120 // textures. These messages are routed to TransportTextureHost. | 120 // textures. These messages are routed to TransportTextureHost. |
121 scoped_refptr<TransportTextureService> transport_texture_service_; | 121 scoped_refptr<TransportTextureService> transport_texture_service_; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 123 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
124 }; | 124 }; |
125 | 125 |
126 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ | 126 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ |
OLD | NEW |