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_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 void ScheduleDelayedWorkOnGpuThread(); | 206 void ScheduleDelayedWorkOnGpuThread(); |
207 bool MakeCurrent(); | 207 bool MakeCurrent(); |
208 base::Closure WrapCallback(const base::Closure& callback); | 208 base::Closure WrapCallback(const base::Closure& callback); |
209 State GetStateFast(); | 209 State GetStateFast(); |
210 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); } | 210 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); } |
211 void CheckSequencedThread(); | 211 void CheckSequencedThread(); |
212 void FenceSyncReleaseOnGpuThread(uint64_t release); | 212 void FenceSyncReleaseOnGpuThread(uint64_t release); |
213 bool WaitFenceSyncOnGpuThread(gpu::CommandBufferNamespace namespace_id, | 213 bool WaitFenceSyncOnGpuThread(gpu::CommandBufferNamespace namespace_id, |
214 gpu::CommandBufferId command_buffer_id, | 214 gpu::CommandBufferId command_buffer_id, |
215 uint64_t release); | 215 uint64_t release); |
| 216 void DescheduleUntilFinishedOnGpuThread(); |
| 217 void RescheduleAfterFinishedOnGpuThread(); |
216 void SignalSyncTokenOnGpuThread(const SyncToken& sync_token, | 218 void SignalSyncTokenOnGpuThread(const SyncToken& sync_token, |
217 const base::Closure& callback); | 219 const base::Closure& callback); |
218 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); | 220 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); |
219 void DestroyTransferBufferOnGpuThread(int32_t id); | 221 void DestroyTransferBufferOnGpuThread(int32_t id); |
220 void CreateImageOnGpuThread(int32_t id, | 222 void CreateImageOnGpuThread(int32_t id, |
221 const gfx::GpuMemoryBufferHandle& handle, | 223 const gfx::GpuMemoryBufferHandle& handle, |
222 const gfx::Size& size, | 224 const gfx::Size& size, |
223 gfx::BufferFormat format, | 225 gfx::BufferFormat format, |
224 uint32_t internalformat, | 226 uint32_t internalformat, |
225 uint32_t order_num, | 227 uint32_t order_num, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; | 318 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; |
317 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> | 319 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> |
318 framebuffer_completeness_cache_; | 320 framebuffer_completeness_cache_; |
319 | 321 |
320 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); | 322 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); |
321 }; | 323 }; |
322 | 324 |
323 } // namespace gpu | 325 } // namespace gpu |
324 | 326 |
325 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 327 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |