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 6b7bdd52b4b46fa2755cf2a62c62dcf3bccc2a8b..67609a3c14b4d9f51646d757641b305697f44cdc 100644 |
--- a/gpu/command_buffer/client/gpu_control.h |
+++ b/gpu/command_buffer/client/gpu_control.h |
@@ -98,15 +98,22 @@ class GPU_EXPORT GpuControl { |
// the lock provided by the client. |
virtual bool IsFenceSyncReleased(uint64_t release) = 0; |
- // Runs |callback| when sync token is signalled. |
+ // Runs |callback| when sync token is signaled. |
virtual void SignalSyncToken(const SyncToken& sync_token, |
const base::Closure& callback) = 0; |
+ // This allows the command buffer proxy to mark each flush with sync token |
piman
2017/03/15 00:30:14
nit: maybe say "the next flush" instead of "each f
sunnyps
2017/03/15 00:56:12
Done.
|
+ // dependencies of that flush for the gpu scheduler. This is used in addition |
+ // to the WaitSyncToken command in the command buffer. For example, the |
+ // WaitSyncToken command is used to pull texture updates when used in |
+ // conjunction with MailboxManagerSync. |
+ virtual void WaitSyncToken(const SyncToken& sync_token) = 0; |
+ |
// Under some circumstances a sync token may be used which has not been |
- // verified to have been flushed. For example, fence syncs queued on the |
- // same channel as the wait command guarantee that the fence sync will |
- // be enqueued first so does not need to be flushed. |
- virtual bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) = 0; |
+ // verified to have been flushed. For example, fence syncs queued on the same |
+ // channel as the wait command guarantee that the fence sync will be enqueued |
+ // first so does not need to be flushed. |
+ virtual bool CanWaitUnverifiedSyncToken(const SyncToken& sync_token) = 0; |
private: |
DISALLOW_COPY_AND_ASSIGN(GpuControl); |