| Index: gpu/command_buffer/common/command_buffer.h
|
| diff --git a/gpu/command_buffer/common/command_buffer.h b/gpu/command_buffer/common/command_buffer.h
|
| index 76124c8336b405a098a62958e95af823a1b5faa4..e44df7feca907927ab3713f31e6e5773c9277164 100644
|
| --- a/gpu/command_buffer/common/command_buffer.h
|
| +++ b/gpu/command_buffer/common/command_buffer.h
|
| @@ -67,13 +67,7 @@ class CommandBuffer {
|
| }
|
|
|
| // Initialize the command buffer with the given size.
|
| - virtual bool Initialize(int32 size) = 0;
|
| -
|
| - // Initialize the command buffer using the given preallocated buffer.
|
| - virtual bool Initialize(base::SharedMemory* buffer, int32 size) = 0;
|
| -
|
| - // Gets the ring buffer for the command buffer.
|
| - virtual Buffer GetRingBuffer() = 0;
|
| + virtual bool Initialize() = 0;
|
|
|
| // Returns the current status.
|
| virtual State GetState() = 0;
|
| @@ -92,6 +86,10 @@ class CommandBuffer {
|
| // have been executed.
|
| virtual State FlushSync(int32 put_offset, int32 last_known_get) = 0;
|
|
|
| + // Sets the buffer commands are read from.
|
| + // Also resets the get and put offsets to 0.
|
| + virtual void SetGetBuffer(int32 transfer_buffer_id) = 0;
|
| +
|
| // Sets the current get offset. This can be called from any thread.
|
| virtual void SetGetOffset(int32 get_offset) = 0;
|
|
|
|
|