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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot to remove cmd buffer helper functios and replace with gpu control ones 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 f4f91f81009b027c9cd70ca5a85f4a1f224833ad..0764a19ef8c288c6087111a23739d60cab36f277 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -130,6 +130,9 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
bool IsGpuChannelLost() override;
CommandBufferNamespace GetNamespaceID() const override;
uint64_t GetCommandBufferID() const override;
+ uint32_t GenerateFenceSyncRelease() override;
+ bool IsFenceSyncRelease(uint32_t release) override;
+ bool IsFenceSyncFlushed(uint32_t release) override;
// The serializer interface to the GPU service (i.e. thread).
class Service {
@@ -254,6 +257,8 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
gpu::Capabilities capabilities_;
GpuMemoryBufferManager* gpu_memory_buffer_manager_;
base::AtomicSequenceNumber next_image_id_;
+ uint32_t next_fence_sync_release_;
+ uint32_t flushed_fence_sync_release_;
// Accessed on both threads:
scoped_ptr<CommandBufferServiceBase> command_buffer_;

Powered by Google App Engine
This is Rietveld 408576698