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_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 void set_gpu_info(const content::GPUInfo& gpu_info); | 77 void set_gpu_info(const content::GPUInfo& gpu_info); |
78 const content::GPUInfo& gpu_info() const; | 78 const content::GPUInfo& gpu_info() const; |
79 | 79 |
80 void OnChannelError(); | 80 void OnChannelError(); |
81 | 81 |
82 // IPC::Message::Sender implementation: | 82 // IPC::Message::Sender implementation: |
83 virtual bool Send(IPC::Message* msg) OVERRIDE; | 83 virtual bool Send(IPC::Message* msg) OVERRIDE; |
84 | 84 |
85 // Create and connect to a command buffer in the GPU process. | 85 // Create and connect to a command buffer in the GPU process. |
86 CommandBufferProxy* CreateViewCommandBuffer( | 86 CommandBufferProxy* CreateViewCommandBuffer( |
87 int render_view_id, | 87 int32 surface_id, |
88 CommandBufferProxy* share_group, | 88 CommandBufferProxy* share_group, |
89 const std::string& allowed_extensions, | 89 const std::string& allowed_extensions, |
90 const std::vector<int32>& attribs, | 90 const std::vector<int32>& attribs, |
91 const GURL& active_url, | 91 const GURL& active_url, |
92 gfx::GpuPreference gpu_preference); | 92 gfx::GpuPreference gpu_preference); |
93 | 93 |
94 // Create and connect to a command buffer in the GPU process. | 94 // Create and connect to a command buffer in the GPU process. |
95 CommandBufferProxy* CreateOffscreenCommandBuffer( | 95 CommandBufferProxy* CreateOffscreenCommandBuffer( |
96 const gfx::Size& size, | 96 const gfx::Size& size, |
97 CommandBufferProxy* share_group, | 97 CommandBufferProxy* share_group, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // for calls from contexts that may live on the compositor or main thread. | 167 // for calls from contexts that may live on the compositor or main thread. |
168 mutable base::Lock context_lock_; | 168 mutable base::Lock context_lock_; |
169 | 169 |
170 // A filter for sending messages from thread other than the main thread. | 170 // A filter for sending messages from thread other than the main thread. |
171 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; | 171 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; |
172 | 172 |
173 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 173 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
174 }; | 174 }; |
175 | 175 |
176 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ | 176 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ |
OLD | NEW |