Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1132)

Side by Side Diff: gpu/ipc/in_process_command_buffer.h

Issue 2722883002: gpu: Allow waiting on sync tokens without sync token client. (Closed)
Patch Set: review Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/ipc/in_process_command_buffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/ipc/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698