| Index: gpu/command_buffer/common/command_buffer.h
|
| ===================================================================
|
| --- gpu/command_buffer/common/command_buffer.h (revision 76263)
|
| +++ gpu/command_buffer/common/command_buffer.h (working copy)
|
| @@ -8,6 +8,10 @@
|
| #include "../common/buffer.h"
|
| #include "../common/constants.h"
|
|
|
| +namespace base {
|
| +class SharedMemory;
|
| +}
|
| +
|
| namespace gpu {
|
|
|
| // Common interface for CommandBuffer implementations.
|
| @@ -55,6 +59,9 @@
|
| // 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;
|
|
|
|
|