| Index: gpu/command_buffer/service/cmd_parser.h
|
| diff --git a/gpu/command_buffer/service/cmd_parser.h b/gpu/command_buffer/service/cmd_parser.h
|
| index fe3eb12dc6836fa9aebfb81115f1fc9783f49e5d..567b7f611a06cf044abd15d71d170cac207c830c 100644
|
| --- a/gpu/command_buffer/service/cmd_parser.h
|
| +++ b/gpu/command_buffer/service/cmd_parser.h
|
| @@ -18,12 +18,14 @@ class AsyncAPIInterface;
|
| // buffer, to implement some asynchronous RPC mechanism.
|
| class CommandParser {
|
| public:
|
| - CommandParser(void *shm_address,
|
| - size_t shm_size,
|
| - ptrdiff_t offset,
|
| - size_t size,
|
| - CommandBufferOffset start_get,
|
| - AsyncAPIInterface *handler);
|
| + explicit CommandParser(AsyncAPIInterface* handler);
|
| +
|
| + // Sets the buffer to read commands from.
|
| + void SetBuffer(
|
| + void* shm_address,
|
| + size_t shm_size,
|
| + ptrdiff_t offset,
|
| + size_t size);
|
|
|
| // Gets the "get" pointer. The get pointer is an index into the command
|
| // buffer considered as an array of CommandBufferEntry.
|
| @@ -63,9 +65,9 @@ class CommandParser {
|
| private:
|
| CommandBufferOffset get_;
|
| CommandBufferOffset put_;
|
| - CommandBufferEntry *buffer_;
|
| + CommandBufferEntry* buffer_;
|
| int32 entry_count_;
|
| - AsyncAPIInterface *handler_;
|
| + AsyncAPIInterface* handler_;
|
| };
|
|
|
| // This class defines the interface for an asynchronous API handler, that
|
|
|