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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 void CheckSequencedThread(); | 203 void CheckSequencedThread(); |
204 void RetireSyncPointOnGpuThread(uint32 sync_point); | 204 void RetireSyncPointOnGpuThread(uint32 sync_point); |
205 void SignalSyncPointOnGpuThread(uint32 sync_point, | 205 void SignalSyncPointOnGpuThread(uint32 sync_point, |
206 const base::Closure& callback); | 206 const base::Closure& callback); |
207 bool WaitSyncPointOnGpuThread(uint32 sync_point); | 207 bool WaitSyncPointOnGpuThread(uint32 sync_point); |
208 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); | 208 void SignalQueryOnGpuThread(unsigned query_id, const base::Closure& callback); |
209 void DestroyTransferBufferOnGpuThread(int32 id); | 209 void DestroyTransferBufferOnGpuThread(int32 id); |
210 void CreateImageOnGpuThread(int32 id, | 210 void CreateImageOnGpuThread(int32 id, |
211 const gfx::GpuMemoryBufferHandle& handle, | 211 const gfx::GpuMemoryBufferHandle& handle, |
212 const gfx::Size& size, | 212 const gfx::Size& size, |
213 gfx::GpuMemoryBuffer::Format format, | 213 gfx::BufferFormat format, |
214 uint32 internalformat); | 214 uint32 internalformat); |
215 void DestroyImageOnGpuThread(int32 id); | 215 void DestroyImageOnGpuThread(int32 id); |
216 void SetGetBufferOnGpuThread(int32 shm_id, base::WaitableEvent* completion); | 216 void SetGetBufferOnGpuThread(int32 shm_id, base::WaitableEvent* completion); |
217 | 217 |
218 // Callbacks: | 218 // Callbacks: |
219 void OnContextLost(); | 219 void OnContextLost(); |
220 void OnResizeView(gfx::Size size, float scale_factor); | 220 void OnResizeView(gfx::Size size, float scale_factor); |
221 bool GetBufferChanged(int32 transfer_buffer_id); | 221 bool GetBufferChanged(int32 transfer_buffer_id); |
222 void PumpCommands(); | 222 void PumpCommands(); |
223 void PerformIdleWork(); | 223 void PerformIdleWork(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 friend class base::RefCountedThreadSafe<GpuInProcessThread>; | 286 friend class base::RefCountedThreadSafe<GpuInProcessThread>; |
287 | 287 |
288 SyncPointManager* sync_point_manager_; // Non-owning. | 288 SyncPointManager* sync_point_manager_; // Non-owning. |
289 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; | 289 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; |
290 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); | 290 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); |
291 }; | 291 }; |
292 | 292 |
293 } // namespace gpu | 293 } // namespace gpu |
294 | 294 |
295 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 295 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |