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

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

Issue 1339203002: Added global order numbers to in process command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor changes Created 5 years, 3 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 29 matching lines...) Expand all
40 #if defined(OS_ANDROID) 40 #if defined(OS_ANDROID)
41 namespace gfx { 41 namespace gfx {
42 class SurfaceTexture; 42 class SurfaceTexture;
43 } 43 }
44 namespace gpu { 44 namespace gpu {
45 class StreamTextureManagerInProcess; 45 class StreamTextureManagerInProcess;
46 } 46 }
47 #endif 47 #endif
48 48
49 namespace gpu { 49 namespace gpu {
50 class SyncPointClient;
51 class SyncPointClientState;
50 class SyncPointManager; 52 class SyncPointManager;
51 class ValueStateMap; 53 class ValueStateMap;
52 54
53 namespace gles2 { 55 namespace gles2 {
54 class FramebufferCompletenessCache; 56 class FramebufferCompletenessCache;
55 class GLES2Decoder; 57 class GLES2Decoder;
56 class MailboxManager; 58 class MailboxManager;
57 class ProgramCache; 59 class ProgramCache;
58 class ShaderTranslatorCache; 60 class ShaderTranslatorCache;
59 class SubscriptionRefSet; 61 class SubscriptionRefSet;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 size(size), 196 size(size),
195 attribs(attribs), 197 attribs(attribs),
196 gpu_preference(gpu_preference), 198 gpu_preference(gpu_preference),
197 capabilities(capabilities), 199 capabilities(capabilities),
198 context_group(share_group), 200 context_group(share_group),
199 image_factory(image_factory) {} 201 image_factory(image_factory) {}
200 }; 202 };
201 203
202 bool InitializeOnGpuThread(const InitializeOnGpuThreadParams& params); 204 bool InitializeOnGpuThread(const InitializeOnGpuThreadParams& params);
203 bool DestroyOnGpuThread(); 205 bool DestroyOnGpuThread();
204 void FlushOnGpuThread(int32 put_offset); 206 void FlushOnGpuThread(int32 put_offset, uint32_t order_num);
205 void ScheduleDelayedWorkOnGpuThread(); 207 void ScheduleDelayedWorkOnGpuThread();
206 uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id); 208 uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id);
207 bool MakeCurrent(); 209 bool MakeCurrent();
208 base::Closure WrapCallback(const base::Closure& callback); 210 base::Closure WrapCallback(const base::Closure& callback);
209 State GetStateFast(); 211 State GetStateFast();
210 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); } 212 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); }
211 void CheckSequencedThread(); 213 void CheckSequencedThread();
212 void RetireSyncPointOnGpuThread(uint32 sync_point); 214 void RetireSyncPointOnGpuThread(uint32 sync_point);
213 void SignalSyncPointOnGpuThread(uint32 sync_point, 215 void SignalSyncPointOnGpuThread(uint32 sync_point,
214 const base::Closure& callback); 216 const base::Closure& callback);
(...skipping 18 matching lines...) Expand all
233 const uint64_t command_buffer_id_; 235 const uint64_t command_buffer_id_;
234 236
235 // Members accessed on the gpu thread (possibly with the exception of 237 // Members accessed on the gpu thread (possibly with the exception of
236 // creation): 238 // creation):
237 bool context_lost_; 239 bool context_lost_;
238 scoped_refptr<TransferBufferManagerInterface> transfer_buffer_manager_; 240 scoped_refptr<TransferBufferManagerInterface> transfer_buffer_manager_;
239 scoped_ptr<GpuScheduler> gpu_scheduler_; 241 scoped_ptr<GpuScheduler> gpu_scheduler_;
240 scoped_ptr<gles2::GLES2Decoder> decoder_; 242 scoped_ptr<gles2::GLES2Decoder> decoder_;
241 scoped_refptr<gfx::GLContext> context_; 243 scoped_refptr<gfx::GLContext> context_;
242 scoped_refptr<gfx::GLSurface> surface_; 244 scoped_refptr<gfx::GLSurface> surface_;
245 scoped_refptr<SyncPointClientState> sync_point_client_state_;
246 scoped_ptr<SyncPointClient> sync_point_client_;
243 base::Closure context_lost_callback_; 247 base::Closure context_lost_callback_;
244 bool delayed_work_pending_; // Used to throttle PerformDelayedWork. 248 bool delayed_work_pending_; // Used to throttle PerformDelayedWork.
245 ImageFactory* image_factory_; 249 ImageFactory* image_factory_;
246 250
247 // Members accessed on the client thread: 251 // Members accessed on the client thread:
248 State last_state_; 252 State last_state_;
249 int32 last_put_offset_; 253 int32 last_put_offset_;
250 gpu::Capabilities capabilities_; 254 gpu::Capabilities capabilities_;
251 GpuMemoryBufferManager* gpu_memory_buffer_manager_; 255 GpuMemoryBufferManager* gpu_memory_buffer_manager_;
252 base::AtomicSequenceNumber next_image_id_; 256 base::AtomicSequenceNumber next_image_id_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 SyncPointManager* sync_point_manager_; // Non-owning. 304 SyncPointManager* sync_point_manager_; // Non-owning.
301 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 305 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
302 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> 306 scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
303 framebuffer_completeness_cache_; 307 framebuffer_completeness_cache_;
304 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); 308 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread);
305 }; 309 };
306 310
307 } // namespace gpu 311 } // namespace gpu
308 312
309 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 313 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.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