| Index: gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| diff --git a/gpu/command_buffer/common/gles2_cmd_format_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| index fba8b0081d341a3eb8cca8b30f525e5fdf47abe3..d0808a744dfddff535d14f7d334640975769b7da 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| @@ -11991,6 +11991,47 @@ static_assert(offsetof(UnmapBuffer, header) == 0,
|
| static_assert(offsetof(UnmapBuffer, target) == 4,
|
| "offset of UnmapBuffer target should be 4");
|
|
|
| +struct FlushMappedBufferRange {
|
| + typedef FlushMappedBufferRange ValueType;
|
| + static const CommandId kCmdId = kFlushMappedBufferRange;
|
| + static const cmd::ArgFlags kArgFlags = cmd::kFixed;
|
| + static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1);
|
| +
|
| + static uint32_t ComputeSize() {
|
| + return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
|
| + }
|
| +
|
| + void SetHeader() { header.SetCmd<ValueType>(); }
|
| +
|
| + void Init(GLenum _target, GLintptr _offset, GLsizeiptr _size) {
|
| + SetHeader();
|
| + target = _target;
|
| + offset = _offset;
|
| + size = _size;
|
| + }
|
| +
|
| + void* Set(void* cmd, GLenum _target, GLintptr _offset, GLsizeiptr _size) {
|
| + static_cast<ValueType*>(cmd)->Init(_target, _offset, _size);
|
| + return NextCmdAddress<ValueType>(cmd);
|
| + }
|
| +
|
| + gpu::CommandHeader header;
|
| + uint32_t target;
|
| + int32_t offset;
|
| + int32_t size;
|
| +};
|
| +
|
| +static_assert(sizeof(FlushMappedBufferRange) == 16,
|
| + "size of FlushMappedBufferRange should be 16");
|
| +static_assert(offsetof(FlushMappedBufferRange, header) == 0,
|
| + "offset of FlushMappedBufferRange header should be 0");
|
| +static_assert(offsetof(FlushMappedBufferRange, target) == 4,
|
| + "offset of FlushMappedBufferRange target should be 4");
|
| +static_assert(offsetof(FlushMappedBufferRange, offset) == 8,
|
| + "offset of FlushMappedBufferRange offset should be 8");
|
| +static_assert(offsetof(FlushMappedBufferRange, size) == 12,
|
| + "offset of FlushMappedBufferRange size should be 12");
|
| +
|
| struct ResizeCHROMIUM {
|
| typedef ResizeCHROMIUM ValueType;
|
| static const CommandId kCmdId = kResizeCHROMIUM;
|
|
|