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

Unified Diff: gpu/command_buffer/client/cmd_buffer_helper.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: reverted some unnecesary changes, fixed some small issues 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/client/cmd_buffer_helper.h
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h
index 8739316b5367720b7b5ff4bef922b5727976cbb1..9ba5ced949452a6767904baf94da6c32428ed501 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.h
+++ b/gpu/command_buffer/client/cmd_buffer_helper.h
@@ -306,6 +306,16 @@ class GPU_EXPORT CommandBufferHelper
CalcImmediateEntries(0);
}
+ uint32_t GenerateFenceSyncRelease();
+
+ bool IsFenceSyncRelease(uint32_t release) {
+ return release < next_fence_sync_release_;
+ }
+
+ bool IsFenceSyncFlushed(uint32_t release) {
+ return release <= flushed_fence_sync_release_;
+ }
+
// Overridden from base::trace_event::MemoryDumpProvider:
bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
base::trace_event::ProcessMemoryDump* pmd) override;
@@ -341,7 +351,9 @@ class GPU_EXPORT CommandBufferHelper
int32 token_;
int32 put_;
int32 last_put_sent_;
- int32 last_barrier_put_sent_;
+
+ uint32_t next_fence_sync_release_;
sunnyps 2015/09/23 21:44:45 I think this should be part of GpuChannelHost::Str
David Yen 2015/09/25 20:13:33 The command buffer ID should be per context (as th
+ uint32_t flushed_fence_sync_release_;
#if defined(CMD_HELPER_PERIODIC_FLUSH_CHECK)
int commands_issued_;

Powered by Google App Engine
This is Rietveld 408576698