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

Unified 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: Added DCHECK in destructor 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/in_process_command_buffer.h
diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
index b06a442555d465b947b6f32072495c9804830772..7c881f19ecf5a8ad0d588fdf29d4ff2dc4f4f205 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -47,6 +47,7 @@ class StreamTextureManagerInProcess;
#endif
namespace gpu {
+class SyncPointClient;
class SyncPointManager;
class ValueStateMap;
@@ -199,7 +200,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
bool InitializeOnGpuThread(const InitializeOnGpuThreadParams& params);
bool DestroyOnGpuThread();
- void FlushOnGpuThread(int32 put_offset);
+ void FlushOnGpuThread(int32 put_offset, uint32_t order_num);
void ScheduleIdleWorkOnGpuThread();
uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id);
bool MakeCurrent();
@@ -236,6 +237,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
scoped_ptr<gles2::GLES2Decoder> decoder_;
scoped_refptr<gfx::GLContext> context_;
scoped_refptr<gfx::GLSurface> surface_;
+ scoped_refptr<SyncPointClient> sync_point_client_;
base::Closure context_lost_callback_;
bool idle_work_pending_; // Used to throttle PerformIdleWork.
ImageFactory* image_factory_;

Powered by Google App Engine
This is Rietveld 408576698