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_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Create and connect to a command buffer in the GPU process. | 84 // Create and connect to a command buffer in the GPU process. |
85 static std::unique_ptr<CommandBufferProxyImpl> Create( | 85 static std::unique_ptr<CommandBufferProxyImpl> Create( |
86 scoped_refptr<GpuChannelHost> host, | 86 scoped_refptr<GpuChannelHost> host, |
87 gpu::SurfaceHandle surface_handle, | 87 gpu::SurfaceHandle surface_handle, |
88 const gfx::Size& size, | 88 const gfx::Size& size, |
89 CommandBufferProxyImpl* share_group, | 89 CommandBufferProxyImpl* share_group, |
90 int32_t stream_id, | 90 int32_t stream_id, |
91 gpu::GpuStreamPriority stream_priority, | 91 gpu::GpuStreamPriority stream_priority, |
92 const gpu::gles2::ContextCreationAttribHelper& attribs, | 92 const gpu::gles2::ContextCreationAttribHelper& attribs, |
93 const GURL& active_url, | 93 const GURL& active_url, |
94 gfx::GpuPreference gpu_preference, | 94 gl::GpuPreference gpu_preference, |
95 scoped_refptr<base::SingleThreadTaskRunner> task_runner); | 95 scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
96 ~CommandBufferProxyImpl() override; | 96 ~CommandBufferProxyImpl() override; |
97 | 97 |
98 // IPC::Listener implementation: | 98 // IPC::Listener implementation: |
99 bool OnMessageReceived(const IPC::Message& message) override; | 99 bool OnMessageReceived(const IPC::Message& message) override; |
100 void OnChannelError() override; | 100 void OnChannelError() override; |
101 | 101 |
102 // CommandBuffer implementation: | 102 // CommandBuffer implementation: |
103 State GetLastState() override; | 103 State GetLastState() override; |
104 int32_t GetLastToken() override; | 104 int32_t GetLastToken() override; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 297 |
298 base::WeakPtr<CommandBufferProxyImpl> weak_this_; | 298 base::WeakPtr<CommandBufferProxyImpl> weak_this_; |
299 scoped_refptr<base::SequencedTaskRunner> callback_thread_; | 299 scoped_refptr<base::SequencedTaskRunner> callback_thread_; |
300 | 300 |
301 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 301 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
302 }; | 302 }; |
303 | 303 |
304 } // namespace gpu | 304 } // namespace gpu |
305 | 305 |
306 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 306 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |