| 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 ccdc040a007916f424d044200dda4c6943990c27..872498cd4de1f45723d47300adfe29a6a0a1b446 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| @@ -8226,6 +8226,43 @@ COMPILE_ASSERT(
|
| offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12,
|
| OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12);
|
|
|
| +struct SubscribeUniformCHROMIUM {
|
| + typedef SubscribeUniformCHROMIUM ValueType;
|
| + static const CommandId kCmdId = kSubscribeUniformCHROMIUM;
|
| + 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, GLuint _bucket_id) {
|
| + SetHeader();
|
| + target = _target;
|
| + bucket_id = _bucket_id;
|
| + }
|
| +
|
| + void* Set(void* cmd, GLenum _target, GLuint _bucket_id) {
|
| + static_cast<ValueType*>(cmd)->Init(_target, _bucket_id);
|
| + return NextCmdAddress<ValueType>(cmd);
|
| + }
|
| +
|
| + gpu::CommandHeader header;
|
| + uint32_t target;
|
| + uint32_t bucket_id;
|
| +};
|
| +
|
| +COMPILE_ASSERT(sizeof(SubscribeUniformCHROMIUM) == 12,
|
| + Sizeof_SubscribeUniformCHROMIUM_is_not_12);
|
| +COMPILE_ASSERT(offsetof(SubscribeUniformCHROMIUM, header) == 0,
|
| + OffsetOf_SubscribeUniformCHROMIUM_header_not_0);
|
| +COMPILE_ASSERT(offsetof(SubscribeUniformCHROMIUM, target) == 4,
|
| + OffsetOf_SubscribeUniformCHROMIUM_target_not_4);
|
| +COMPILE_ASSERT(offsetof(SubscribeUniformCHROMIUM, bucket_id) == 8,
|
| + OffsetOf_SubscribeUniformCHROMIUM_bucket_id_not_8);
|
| +
|
| struct BindTexImage2DCHROMIUM {
|
| typedef BindTexImage2DCHROMIUM ValueType;
|
| static const CommandId kCmdId = kBindTexImage2DCHROMIUM;
|
|
|