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 <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 void FenceSyncReleaseOnGpuThread(uint64_t release); | 223 void FenceSyncReleaseOnGpuThread(uint64_t release); |
224 bool WaitFenceSyncOnGpuThread(gpu::CommandBufferNamespace namespace_id, | 224 bool WaitFenceSyncOnGpuThread(gpu::CommandBufferNamespace namespace_id, |
225 uint64_t command_buffer_id, | 225 uint64_t command_buffer_id, |
226 uint64_t release); | 226 uint64_t release); |
227 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); | 227 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); |
228 void DestroyTransferBufferOnGpuThread(int32 id); | 228 void DestroyTransferBufferOnGpuThread(int32 id); |
229 void CreateImageOnGpuThread(int32 id, | 229 void CreateImageOnGpuThread(int32 id, |
230 const gfx::GpuMemoryBufferHandle& handle, | 230 const gfx::GpuMemoryBufferHandle& handle, |
231 const gfx::Size& size, | 231 const gfx::Size& size, |
232 gfx::BufferFormat format, | 232 gfx::BufferFormat format, |
233 uint32 internalformat); | 233 uint32 internalformat, |
| 234 uint32_t order_num, |
| 235 uint64_t fence_sync); |
234 void DestroyImageOnGpuThread(int32 id); | 236 void DestroyImageOnGpuThread(int32 id); |
235 void SetGetBufferOnGpuThread(int32 shm_id, base::WaitableEvent* completion); | 237 void SetGetBufferOnGpuThread(int32 shm_id, base::WaitableEvent* completion); |
236 | 238 |
237 // Callbacks: | 239 // Callbacks: |
238 void OnContextLost(); | 240 void OnContextLost(); |
239 bool GetBufferChanged(int32 transfer_buffer_id); | 241 bool GetBufferChanged(int32 transfer_buffer_id); |
240 void PumpCommands(); | 242 void PumpCommands(); |
241 void PerformDelayedWork(); | 243 void PerformDelayedWork(); |
242 | 244 |
243 const uint64_t command_buffer_id_; | 245 const uint64_t command_buffer_id_; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 SyncPointManager* sync_point_manager_; // Non-owning. | 317 SyncPointManager* sync_point_manager_; // Non-owning. |
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 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); | 321 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); |
320 }; | 322 }; |
321 | 323 |
322 } // namespace gpu | 324 } // namespace gpu |
323 | 325 |
324 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 326 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |