| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_IN_PROCESS_COMMAND_BUFFER_H_ | 5 #ifndef GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
| 6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ | 6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 bool DestroyOnGpuThread(); | 230 bool DestroyOnGpuThread(); |
| 231 void FlushOnGpuThread(int32_t put_offset); | 231 void FlushOnGpuThread(int32_t put_offset); |
| 232 void UpdateLastStateOnGpuThread(); | 232 void UpdateLastStateOnGpuThread(); |
| 233 void ScheduleDelayedWorkOnGpuThread(); | 233 void ScheduleDelayedWorkOnGpuThread(); |
| 234 bool MakeCurrent(); | 234 bool MakeCurrent(); |
| 235 base::Closure WrapCallback(const base::Closure& callback); | 235 base::Closure WrapCallback(const base::Closure& callback); |
| 236 void QueueTask(bool out_of_order, const base::Closure& task); | 236 void QueueTask(bool out_of_order, const base::Closure& task); |
| 237 void ProcessTasksOnGpuThread(); | 237 void ProcessTasksOnGpuThread(); |
| 238 void CheckSequencedThread(); | 238 void CheckSequencedThread(); |
| 239 void FenceSyncReleaseOnGpuThread(uint64_t release); | 239 void FenceSyncReleaseOnGpuThread(uint64_t release); |
| 240 bool WaitFenceSyncOnGpuThread(gpu::CommandBufferNamespace namespace_id, | 240 bool WaitSyncTokenOnGpuThread(const SyncToken& sync_token); |
| 241 gpu::CommandBufferId command_buffer_id, | 241 void OnWaitSyncTokenCompleted(const SyncToken& sync_token); |
| 242 uint64_t release); | |
| 243 void OnWaitFenceSyncCompleted(CommandBufferNamespace namespace_id, | |
| 244 CommandBufferId command_buffer_id, | |
| 245 uint64_t release); | |
| 246 void DescheduleUntilFinishedOnGpuThread(); | 242 void DescheduleUntilFinishedOnGpuThread(); |
| 247 void RescheduleAfterFinishedOnGpuThread(); | 243 void RescheduleAfterFinishedOnGpuThread(); |
| 248 void SignalSyncTokenOnGpuThread(const SyncToken& sync_token, | 244 void SignalSyncTokenOnGpuThread(const SyncToken& sync_token, |
| 249 const base::Closure& callback); | 245 const base::Closure& callback); |
| 250 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); | 246 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); |
| 251 void DestroyTransferBufferOnGpuThread(int32_t id); | 247 void DestroyTransferBufferOnGpuThread(int32_t id); |
| 252 void CreateImageOnGpuThread(int32_t id, | 248 void CreateImageOnGpuThread(int32_t id, |
| 253 const gfx::GpuMemoryBufferHandle& handle, | 249 const gfx::GpuMemoryBufferHandle& handle, |
| 254 const gfx::Size& size, | 250 const gfx::Size& size, |
| 255 gfx::BufferFormat format, | 251 gfx::BufferFormat format, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 327 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
| 332 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; | 328 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; |
| 333 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 329 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
| 334 | 330 |
| 335 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 331 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
| 336 }; | 332 }; |
| 337 | 333 |
| 338 } // namespace gpu | 334 } // namespace gpu |
| 339 | 335 |
| 340 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ | 336 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |