| 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); | |
| 236 void DestroyImageOnGpuThread(int32 id); | 234 void DestroyImageOnGpuThread(int32 id); |
| 237 void SetGetBufferOnGpuThread(int32 shm_id, base::WaitableEvent* completion); | 235 void SetGetBufferOnGpuThread(int32 shm_id, base::WaitableEvent* completion); |
| 238 | 236 |
| 239 // Callbacks: | 237 // Callbacks: |
| 240 void OnContextLost(); | 238 void OnContextLost(); |
| 241 bool GetBufferChanged(int32 transfer_buffer_id); | 239 bool GetBufferChanged(int32 transfer_buffer_id); |
| 242 void PumpCommands(); | 240 void PumpCommands(); |
| 243 void PerformDelayedWork(); | 241 void PerformDelayedWork(); |
| 244 | 242 |
| 245 const uint64_t command_buffer_id_; | 243 const uint64_t command_buffer_id_; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 SyncPointManager* sync_point_manager_; // Non-owning. | 315 SyncPointManager* sync_point_manager_; // Non-owning. |
| 318 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; | 316 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; |
| 319 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> | 317 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> |
| 320 framebuffer_completeness_cache_; | 318 framebuffer_completeness_cache_; |
| 321 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); | 319 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); |
| 322 }; | 320 }; |
| 323 | 321 |
| 324 } // namespace gpu | 322 } // namespace gpu |
| 325 | 323 |
| 326 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 324 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |