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

Unified Diff: gpu/command_buffer/client/gpu_control.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 mojo readme, changed wait() to take a pointer Created 5 years, 2 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/gpu_control.h
diff --git a/gpu/command_buffer/client/gpu_control.h b/gpu/command_buffer/client/gpu_control.h
index 7065d1edb44c27e6904166091e2a4ab299d01819..700015216039c1659fe6511c052f088512752d23 100644
--- a/gpu/command_buffer/client/gpu_control.h
+++ b/gpu/command_buffer/client/gpu_control.h
@@ -96,6 +96,14 @@ class GPU_EXPORT GpuControl {
virtual CommandBufferNamespace GetNamespaceID() const = 0;
virtual uint64_t GetCommandBufferID() const = 0;
+ // Fence Syncs use release counters at a context level, these fence syncs
+ // need to be flushed before they can be shared with other contexts across
+ // channels. Subclasses should implement these functions and take care of
+ // figuring out when a fence sync has been flushed.
+ virtual uint64_t GenerateFenceSyncRelease() = 0;
+ virtual bool IsFenceSyncRelease(uint64_t release) = 0;
+ virtual bool IsFenceSyncFlushed(uint64_t release) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(GpuControl);
};
« no previous file with comments | « gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698