| 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 eb35d4a2d02e0bfc4dd518be56c88087a42a9d00..e011ca870de275dafb0f238092519eaf6ef032b6 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| @@ -10418,6 +10418,71 @@ static_assert(offsetof(CopyTextureCHROMIUM, internalformat) == 20,
|
| static_assert(offsetof(CopyTextureCHROMIUM, dest_type) == 24,
|
| "offset of CopyTextureCHROMIUM dest_type should be 24");
|
|
|
| +struct CopySubTextureCHROMIUM {
|
| + typedef CopySubTextureCHROMIUM ValueType;
|
| + static const CommandId kCmdId = kCopySubTextureCHROMIUM;
|
| + static const cmd::ArgFlags kArgFlags = cmd::kFixed;
|
| + static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
|
| +
|
| + static uint32_t ComputeSize() {
|
| + return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
|
| + }
|
| +
|
| + void SetHeader() { header.SetCmd<ValueType>(); }
|
| +
|
| + void Init(GLenum _target,
|
| + GLenum _source_id,
|
| + GLenum _dest_id,
|
| + GLint _level,
|
| + GLint _xoffset,
|
| + GLint _yoffset) {
|
| + SetHeader();
|
| + target = _target;
|
| + source_id = _source_id;
|
| + dest_id = _dest_id;
|
| + level = _level;
|
| + xoffset = _xoffset;
|
| + yoffset = _yoffset;
|
| + }
|
| +
|
| + void* Set(void* cmd,
|
| + GLenum _target,
|
| + GLenum _source_id,
|
| + GLenum _dest_id,
|
| + GLint _level,
|
| + GLint _xoffset,
|
| + GLint _yoffset) {
|
| + static_cast<ValueType*>(cmd)
|
| + ->Init(_target, _source_id, _dest_id, _level, _xoffset, _yoffset);
|
| + return NextCmdAddress<ValueType>(cmd);
|
| + }
|
| +
|
| + gpu::CommandHeader header;
|
| + uint32_t target;
|
| + uint32_t source_id;
|
| + uint32_t dest_id;
|
| + int32_t level;
|
| + int32_t xoffset;
|
| + int32_t yoffset;
|
| +};
|
| +
|
| +static_assert(sizeof(CopySubTextureCHROMIUM) == 28,
|
| + "size of CopySubTextureCHROMIUM should be 28");
|
| +static_assert(offsetof(CopySubTextureCHROMIUM, header) == 0,
|
| + "offset of CopySubTextureCHROMIUM header should be 0");
|
| +static_assert(offsetof(CopySubTextureCHROMIUM, target) == 4,
|
| + "offset of CopySubTextureCHROMIUM target should be 4");
|
| +static_assert(offsetof(CopySubTextureCHROMIUM, source_id) == 8,
|
| + "offset of CopySubTextureCHROMIUM source_id should be 8");
|
| +static_assert(offsetof(CopySubTextureCHROMIUM, dest_id) == 12,
|
| + "offset of CopySubTextureCHROMIUM dest_id should be 12");
|
| +static_assert(offsetof(CopySubTextureCHROMIUM, level) == 16,
|
| + "offset of CopySubTextureCHROMIUM level should be 16");
|
| +static_assert(offsetof(CopySubTextureCHROMIUM, xoffset) == 20,
|
| + "offset of CopySubTextureCHROMIUM xoffset should be 20");
|
| +static_assert(offsetof(CopySubTextureCHROMIUM, yoffset) == 24,
|
| + "offset of CopySubTextureCHROMIUM yoffset should be 24");
|
| +
|
| struct DrawArraysInstancedANGLE {
|
| typedef DrawArraysInstancedANGLE ValueType;
|
| static const CommandId kCmdId = kDrawArraysInstancedANGLE;
|
|
|