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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual bool OnMessageReceived(const IPC::Message& msg); | 62 virtual bool OnMessageReceived(const IPC::Message& msg); |
63 virtual void OnChannelConnected(int32 peer_pid); | 63 virtual void OnChannelConnected(int32 peer_pid); |
64 virtual void OnChannelError(); | 64 virtual void OnChannelError(); |
65 | 65 |
66 // IPC::Message::Sender implementation: | 66 // IPC::Message::Sender implementation: |
67 virtual bool Send(IPC::Message* msg); | 67 virtual bool Send(IPC::Message* msg); |
68 | 68 |
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 int render_view_id, | 71 int render_view_id, |
| 72 CommandBufferProxy* share_group, |
72 const std::string& allowed_extensions, | 73 const std::string& allowed_extensions, |
73 const std::vector<int32>& attribs, | 74 const std::vector<int32>& attribs, |
74 const GURL& active_url); | 75 const GURL& active_url); |
75 | 76 |
76 // Create and connect to a command buffer in the GPU process. | 77 // Create and connect to a command buffer in the GPU process. |
77 CommandBufferProxy* CreateOffscreenCommandBuffer( | 78 CommandBufferProxy* CreateOffscreenCommandBuffer( |
78 const gfx::Size& size, | 79 const gfx::Size& size, |
| 80 CommandBufferProxy* share_group, |
79 const std::string& allowed_extensions, | 81 const std::string& allowed_extensions, |
80 const std::vector<int32>& attribs, | 82 const std::vector<int32>& attribs, |
81 const GURL& active_url); | 83 const GURL& active_url); |
82 | 84 |
83 // Creates a video decoder in the GPU process. | 85 // Creates a video decoder in the GPU process. |
84 // Returned pointer is owned by the CommandBufferProxy for |route_id|. | 86 // Returned pointer is owned by the CommandBufferProxy for |route_id|. |
85 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( | 87 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( |
86 int command_buffer_route_id, | 88 int command_buffer_route_id, |
87 const std::vector<uint32>& configs, | 89 const std::vector<uint32>& configs, |
88 media::VideoDecodeAccelerator::Client* client); | 90 media::VideoDecodeAccelerator::Client* client); |
(...skipping 28 matching lines...) Expand all Loading... |
117 ProxyMap proxies_; | 119 ProxyMap proxies_; |
118 | 120 |
119 // This is a MessageFilter to intercept IPC messages related to transport | 121 // This is a MessageFilter to intercept IPC messages related to transport |
120 // textures. These messages are routed to TransportTextureHost. | 122 // textures. These messages are routed to TransportTextureHost. |
121 scoped_refptr<TransportTextureService> transport_texture_service_; | 123 scoped_refptr<TransportTextureService> transport_texture_service_; |
122 | 124 |
123 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 125 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
124 }; | 126 }; |
125 | 127 |
126 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ | 128 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ |
OLD | NEW |