Chromium Code Reviews

Unified Diff: gpu/command_buffer/client/gpu_control.h

Issue 1489573003: Added an extra sync token field for extra command buffer identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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 0adf93a93f732d6e77a35590a6df9b2c09552968..2d8c036061fae9f57aff658658238ec682b97518 100644
--- a/gpu/command_buffer/client/gpu_control.h
+++ b/gpu/command_buffer/client/gpu_control.h
@@ -89,9 +89,13 @@ class GPU_EXPORT GpuControl {
// The namespace and command buffer ID forms a unique pair for all existing
// GpuControl (on client) and matches for the corresponding command buffer
- // (on server) in a single server process.
+ // (on server) in a single server process. The extra command buffer data can
+ // be used for extra identification purposes. One usage is to store some
+ // extra field to identify unverified sync tokens for the implementation of
+ // the CanWaitUnverifiedSyncToken() function.
virtual CommandBufferNamespace GetNamespaceID() const = 0;
virtual uint64_t GetCommandBufferID() const = 0;
+ virtual uint32_t GetExtraCommandBufferData() 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

Powered by Google App Engine