| 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 GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ | 5 #ifndef GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ |
| 6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ | 6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // Create and connect to a command buffer in the GPU process. | 107 // Create and connect to a command buffer in the GPU process. |
| 108 std::unique_ptr<CommandBufferProxyImpl> CreateCommandBuffer( | 108 std::unique_ptr<CommandBufferProxyImpl> CreateCommandBuffer( |
| 109 gpu::SurfaceHandle surface_handle, | 109 gpu::SurfaceHandle surface_handle, |
| 110 const gfx::Size& size, | 110 const gfx::Size& size, |
| 111 CommandBufferProxyImpl* share_group, | 111 CommandBufferProxyImpl* share_group, |
| 112 int32_t stream_id, | 112 int32_t stream_id, |
| 113 gpu::GpuStreamPriority stream_priority, | 113 gpu::GpuStreamPriority stream_priority, |
| 114 const std::vector<int32_t>& attribs, | 114 const std::vector<int32_t>& attribs, |
| 115 const GURL& active_url, | 115 const GURL& active_url, |
| 116 gfx::GpuPreference gpu_preference); | 116 gfx::GpuPreference gpu_preference, |
| 117 scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
| 117 | 118 |
| 118 // Destroy a command buffer created by this channel. | 119 // Destroy a command buffer created by this channel. |
| 119 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); | 120 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); |
| 120 | 121 |
| 121 // Destroy this channel. Must be called on the main thread, before | 122 // Destroy this channel. Must be called on the main thread, before |
| 122 // destruction. | 123 // destruction. |
| 123 void DestroyChannel(); | 124 void DestroyChannel(); |
| 124 | 125 |
| 125 // Add a message route for the current message loop. | 126 // Add a message route for the current message loop. |
| 126 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); | 127 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 mutable base::Lock context_lock_; | 289 mutable base::Lock context_lock_; |
| 289 std::unique_ptr<IPC::SyncChannel> channel_; | 290 std::unique_ptr<IPC::SyncChannel> channel_; |
| 290 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; | 291 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; |
| 291 | 292 |
| 292 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 293 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
| 293 }; | 294 }; |
| 294 | 295 |
| 295 } // namespace gpu | 296 } // namespace gpu |
| 296 | 297 |
| 297 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ | 298 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ |
| OLD | NEW |