| Index: gpu/command_buffer/client/cmd_buffer_helper.h
|
| diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h
|
| index b6f45e2152eb2d1ab53a04eb7ae6e539b0f7240b..5fbf4629ef6ec8261a5bcb24ef77864b0345c5ce 100644
|
| --- a/gpu/command_buffer/client/cmd_buffer_helper.h
|
| +++ b/gpu/command_buffer/client/cmd_buffer_helper.h
|
| @@ -214,6 +214,10 @@ class CommandBufferHelper {
|
| return command_buffer_;
|
| }
|
|
|
| + Buffer get_ring_buffer() const {
|
| + return ring_buffer_;
|
| + }
|
| +
|
| private:
|
| // Waits until get changes, updating the value of get_.
|
| void WaitForGetChange();
|
| @@ -224,9 +228,13 @@ class CommandBufferHelper {
|
| usable_entry_count_;
|
| }
|
|
|
| + bool AllocateRingBuffer();
|
| +
|
| CommandBuffer* command_buffer_;
|
| + int32 ring_buffer_id_;
|
| + int32 ring_buffer_size_;
|
| Buffer ring_buffer_;
|
| - CommandBufferEntry *entries_;
|
| + CommandBufferEntry* entries_;
|
| int32 total_entry_count_; // the total number of entries
|
| int32 usable_entry_count_; // the usable number (ie, minus space for jump)
|
| int32 token_;
|
|
|