| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void set_gpu_info(const content::GPUInfo& gpu_info); | 69 void set_gpu_info(const content::GPUInfo& gpu_info); |
| 70 const content::GPUInfo& gpu_info() const; | 70 const content::GPUInfo& gpu_info() const; |
| 71 | 71 |
| 72 void OnChannelError(); | 72 void OnChannelError(); |
| 73 | 73 |
| 74 // IPC::Message::Sender implementation: | 74 // IPC::Message::Sender implementation: |
| 75 virtual bool Send(IPC::Message* msg) OVERRIDE; | 75 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 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* CreateViewCommandBuffer( | 78 CommandBufferProxy* CreateViewCommandBuffer( |
| 79 int render_view_id, | 79 int32 surface_id, |
| 80 CommandBufferProxy* share_group, | 80 CommandBufferProxy* share_group, |
| 81 const std::string& allowed_extensions, | 81 const std::string& allowed_extensions, |
| 82 const std::vector<int32>& attribs, | 82 const std::vector<int32>& attribs, |
| 83 const GURL& active_url, | 83 const GURL& active_url, |
| 84 gfx::GpuPreference gpu_preference); | 84 gfx::GpuPreference gpu_preference); |
| 85 | 85 |
| 86 // Create and connect to a command buffer in the GPU process. | 86 // Create and connect to a command buffer in the GPU process. |
| 87 CommandBufferProxy* CreateOffscreenCommandBuffer( | 87 CommandBufferProxy* CreateOffscreenCommandBuffer( |
| 88 const gfx::Size& size, | 88 const gfx::Size& size, |
| 89 CommandBufferProxy* share_group, | 89 CommandBufferProxy* share_group, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // for calls from contexts that may live on the compositor or main thread. | 180 // for calls from contexts that may live on the compositor or main thread. |
| 181 mutable base::Lock context_lock_; | 181 mutable base::Lock context_lock_; |
| 182 | 182 |
| 183 // A filter for sending messages from thread other than the main thread. | 183 // A filter for sending messages from thread other than the main thread. |
| 184 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; | 184 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; |
| 185 | 185 |
| 186 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 186 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ | 189 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ |
| OLD | NEW |