diff options
Diffstat (limited to 'gpu/command_buffer/common/command_buffer.h')
-rw-r--r-- | gpu/command_buffer/common/command_buffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/command_buffer.h b/gpu/command_buffer/common/command_buffer.h index 963b228..b758333 100644 --- a/gpu/command_buffer/common/command_buffer.h +++ b/gpu/command_buffer/common/command_buffer.h @@ -80,6 +80,12 @@ class CommandBuffer { // identifies it or -1 on error. virtual int32 CreateTransferBuffer(size_t size) = 0; + // Register an existing shared memory object and get an ID that can be used + // to identify it in the command buffer. Callee dups the handle until + // DestroyTransferBuffer is called. + virtual int32 RegisterTransferBuffer(base::SharedMemory* shared_memory, + size_t size) = 0; + // Destroy a transfer buffer and recycle the handle. virtual void DestroyTransferBuffer(int32 id) = 0; |