| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 gfx::SwapResult result, | 146 gfx::SwapResult result, |
| 147 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; | 147 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; |
| 148 void SetSwapBuffersCompletionCallback( | 148 void SetSwapBuffersCompletionCallback( |
| 149 const SwapBuffersCompletionCallback& callback); | 149 const SwapBuffersCompletionCallback& callback); |
| 150 | 150 |
| 151 using UpdateVSyncParametersCallback = | 151 using UpdateVSyncParametersCallback = |
| 152 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; | 152 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; |
| 153 void SetUpdateVSyncParametersCallback( | 153 void SetUpdateVSyncParametersCallback( |
| 154 const UpdateVSyncParametersCallback& callback); | 154 const UpdateVSyncParametersCallback& callback); |
| 155 | 155 |
| 156 void SetNeedsVSync(bool needs_vsync); | |
| 157 | |
| 158 int32_t route_id() const { return route_id_; } | 156 int32_t route_id() const { return route_id_; } |
| 159 | 157 |
| 160 const scoped_refptr<GpuChannelHost>& channel() const { return channel_; } | 158 const scoped_refptr<GpuChannelHost>& channel() const { return channel_; } |
| 161 | 159 |
| 162 base::SharedMemoryHandle GetSharedStateHandle() const { | 160 base::SharedMemoryHandle GetSharedStateHandle() const { |
| 163 return shared_state_shm_->handle(); | 161 return shared_state_shm_->handle(); |
| 164 } | 162 } |
| 165 uint32_t CreateStreamTexture(uint32_t texture_id); | 163 uint32_t CreateStreamTexture(uint32_t texture_id); |
| 166 | 164 |
| 167 private: | 165 private: |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 292 |
| 295 base::WeakPtr<CommandBufferProxyImpl> weak_this_; | 293 base::WeakPtr<CommandBufferProxyImpl> weak_this_; |
| 296 scoped_refptr<base::SequencedTaskRunner> callback_thread_; | 294 scoped_refptr<base::SequencedTaskRunner> callback_thread_; |
| 297 | 295 |
| 298 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 296 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
| 299 }; | 297 }; |
| 300 | 298 |
| 301 } // namespace gpu | 299 } // namespace gpu |
| 302 | 300 |
| 303 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 301 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| OLD | NEW |