| 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_CHANNEL_HOST_H_ | 5 #ifndef CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ |
| 6 #define CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ | 6 #define CONTENT_RENDERER_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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // IPC::Channel::Listener implementation: | 60 // IPC::Channel::Listener implementation: |
| 61 virtual bool OnMessageReceived(const IPC::Message& msg); | 61 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 62 virtual void OnChannelConnected(int32 peer_pid); | 62 virtual void OnChannelConnected(int32 peer_pid); |
| 63 virtual void OnChannelError(); | 63 virtual void OnChannelError(); |
| 64 | 64 |
| 65 // IPC::Message::Sender implementation: | 65 // IPC::Message::Sender implementation: |
| 66 virtual bool Send(IPC::Message* msg); | 66 virtual bool Send(IPC::Message* msg); |
| 67 | 67 |
| 68 // Create and connect to a command buffer in the GPU process. | 68 // Create and connect to a command buffer in the GPU process. |
| 69 CommandBufferProxy* CreateViewCommandBuffer( | 69 CommandBufferProxy* CreateViewCommandBuffer( |
| 70 gfx::PluginWindowHandle compositing_surface, |
| 70 int render_view_id, | 71 int render_view_id, |
| 71 const std::string& allowed_extensions, | 72 const std::string& allowed_extensions, |
| 72 const std::vector<int32>& attribs, | 73 const std::vector<int32>& attribs, |
| 73 const GURL& active_url); | 74 const GURL& active_url); |
| 74 | 75 |
| 75 // Create and connect to a command buffer in the GPU process. | 76 // Create and connect to a command buffer in the GPU process. |
| 76 CommandBufferProxy* CreateOffscreenCommandBuffer( | 77 CommandBufferProxy* CreateOffscreenCommandBuffer( |
| 77 CommandBufferProxy* parent, | 78 CommandBufferProxy* parent, |
| 78 const gfx::Size& size, | 79 const gfx::Size& size, |
| 79 const std::string& allowed_extensions, | 80 const std::string& allowed_extensions, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; | 114 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; |
| 114 | 115 |
| 115 // This is a MessageFilter to intercept IPC messages related to transport | 116 // This is a MessageFilter to intercept IPC messages related to transport |
| 116 // textures. These messages are routed to TransportTextureHost. | 117 // textures. These messages are routed to TransportTextureHost. |
| 117 scoped_refptr<TransportTextureService> transport_texture_service_; | 118 scoped_refptr<TransportTextureService> transport_texture_service_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 120 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ | 123 #endif // CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ |
| OLD | NEW |