| Index: gpu/ipc/command_buffer_proxy.h
|
| diff --git a/gpu/ipc/command_buffer_proxy.h b/gpu/ipc/command_buffer_proxy.h
|
| index 4f53fb0fbff1d422efd9da78eca42e1f39123843..d4412f0dcb357d84c9464765dff46933c4a8777e 100644
|
| --- a/gpu/ipc/command_buffer_proxy.h
|
| +++ b/gpu/ipc/command_buffer_proxy.h
|
| @@ -37,6 +37,17 @@ class GPU_EXPORT CommandBufferProxy : public gpu::CommandBuffer {
|
| virtual bool DiscardBackbuffer() = 0;
|
| virtual bool EnsureBackbuffer() = 0;
|
|
|
| + // Inserts a sync point, returning its ID. This is handled on the IO thread of
|
| + // the GPU process, and so should be relatively fast, but its effect is
|
| + // ordered wrt other messages (in particular, Flush). Sync point IDs are
|
| + // global and can be used for cross-channel synchronization.
|
| + virtual uint32 InsertSyncPoint() = 0;
|
| +
|
| + // Makes this command buffer wait on a sync point. This command buffer will be
|
| + // unscheduled until the command buffer that inserted that sync point reaches
|
| + // it, or gets destroyed.
|
| + virtual void WaitSyncPoint(uint32) = 0;
|
| +
|
| // Register a callback to invoke whenever we recieve a new memory allocation.
|
| virtual void SetMemoryAllocationChangedCallback(
|
| const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
|
|
|