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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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
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_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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/image_factory.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698