| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Create and connect to a command buffer in the GPU process. | 69 // Create and connect to a command buffer in the GPU process. |
| 70 CommandBufferProxy* CreateViewCommandBuffer( | 70 CommandBufferProxy* CreateViewCommandBuffer( |
| 71 gfx::PluginWindowHandle compositing_surface, | 71 gfx::PluginWindowHandle compositing_surface, |
| 72 int render_view_id, | 72 int render_view_id, |
| 73 const std::string& allowed_extensions, | 73 const std::string& allowed_extensions, |
| 74 const std::vector<int32>& attribs, | 74 const std::vector<int32>& attribs, |
| 75 const GURL& active_url); | 75 const GURL& active_url); |
| 76 | 76 |
| 77 // Create and connect to a command buffer in the GPU process. | 77 // Create and connect to a command buffer in the GPU process. |
| 78 CommandBufferProxy* CreateOffscreenCommandBuffer( | 78 CommandBufferProxy* CreateOffscreenCommandBuffer( |
| 79 CommandBufferProxy* parent, | |
| 80 const gfx::Size& size, | 79 const gfx::Size& size, |
| 81 const std::string& allowed_extensions, | 80 const std::string& allowed_extensions, |
| 82 const std::vector<int32>& attribs, | 81 const std::vector<int32>& attribs, |
| 83 uint32 parent_texture_id, | |
| 84 const GURL& active_url); | 82 const GURL& active_url); |
| 85 | 83 |
| 86 // Destroy a command buffer created by this channel. | 84 // Destroy a command buffer created by this channel. |
| 87 void DestroyCommandBuffer(CommandBufferProxy* command_buffer); | 85 void DestroyCommandBuffer(CommandBufferProxy* command_buffer); |
| 88 | 86 |
| 89 // Create a surface in the GPU process. Returns null on failure. | 87 // Create a surface in the GPU process. Returns null on failure. |
| 90 GpuSurfaceProxy* CreateOffscreenSurface(const gfx::Size& size); | 88 GpuSurfaceProxy* CreateOffscreenSurface(const gfx::Size& size); |
| 91 | 89 |
| 92 // Destroy a surface in the GPU process. | 90 // Destroy a surface in the GPU process. |
| 93 void DestroySurface(GpuSurfaceProxy* surface); | 91 void DestroySurface(GpuSurfaceProxy* surface); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 121 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; | 119 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; |
| 122 | 120 |
| 123 // This is a MessageFilter to intercept IPC messages related to transport | 121 // This is a MessageFilter to intercept IPC messages related to transport |
| 124 // textures. These messages are routed to TransportTextureHost. | 122 // textures. These messages are routed to TransportTextureHost. |
| 125 scoped_refptr<TransportTextureService> transport_texture_service_; | 123 scoped_refptr<TransportTextureService> transport_texture_service_; |
| 126 | 124 |
| 127 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 125 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
| 128 }; | 126 }; |
| 129 | 127 |
| 130 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ | 128 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ |
| OLD | NEW |