| Index: gpu/command_buffer/service/common_decoder.h
|
| diff --git a/gpu/command_buffer/service/common_decoder.h b/gpu/command_buffer/service/common_decoder.h
|
| index fc9ecf22433266fe4351b7a07e959a09437e3626..53de875625ad33e88d6751514a22c46525cd8102 100644
|
| --- a/gpu/command_buffer/service/common_decoder.h
|
| +++ b/gpu/command_buffer/service/common_decoder.h
|
| @@ -14,6 +14,10 @@
|
| #include "gpu/command_buffer/service/cmd_parser.h"
|
| #include "gpu/gpu_export.h"
|
|
|
| +// Forwardly declare a few GL types to avoid including GL header files.
|
| +typedef int GLsizei;
|
| +typedef int GLint;
|
| +
|
| namespace gpu {
|
|
|
| class CommandBufferEngine;
|
| @@ -82,6 +86,13 @@ class GPU_EXPORT CommonDecoder : NON_EXPORTED_BASE(public AsyncAPIInterface) {
|
| // is no string.
|
| bool GetAsString(std::string* str);
|
|
|
| + // Gets the bucket data as strings.
|
| + // On success, the number of strings are in |_count|, the string data are
|
| + // in |_string|, and string sizes are in |_length|..
|
| + bool GetAsStrings(GLsizei* _count,
|
| + std::vector<char*>* _string,
|
| + std::vector<GLint>* _length);
|
| +
|
| private:
|
| bool OffsetSizeValid(size_t offset, size_t size) const {
|
| size_t temp = offset + size;
|
|
|