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..857bc2ce5128da3d9ff35fd6951fec6951cd80e9 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
@@ -8226,6 +8226,103 @@ 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(GLint _location, GLenum _target) { |
+ SetHeader(); |
+ location = _location; |
+ target = _target; |
+ } |
+ |
+ void* Set(void* cmd, GLint _location, GLenum _target) { |
+ static_cast<ValueType*>(cmd)->Init(_location, _target); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+ int32_t location; |
+ uint32_t target; |
+}; |
+ |
+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, location) == 4, |
+ OffsetOf_SubscribeUniformCHROMIUM_location_not_4); |
+COMPILE_ASSERT(offsetof(SubscribeUniformCHROMIUM, target) == 8, |
+ OffsetOf_SubscribeUniformCHROMIUM_target_not_8); |
+ |
+struct UnsubscribeUniformCHROMIUM { |
+ typedef UnsubscribeUniformCHROMIUM ValueType; |
+ static const CommandId kCmdId = kUnsubscribeUniformCHROMIUM; |
+ 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(GLint _location) { |
+ SetHeader(); |
+ location = _location; |
+ } |
+ |
+ void* Set(void* cmd, GLint _location) { |
+ static_cast<ValueType*>(cmd)->Init(_location); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+ int32_t location; |
+}; |
+ |
+COMPILE_ASSERT(sizeof(UnsubscribeUniformCHROMIUM) == 8, |
+ Sizeof_UnsubscribeUniformCHROMIUM_is_not_8); |
+COMPILE_ASSERT(offsetof(UnsubscribeUniformCHROMIUM, header) == 0, |
+ OffsetOf_UnsubscribeUniformCHROMIUM_header_not_0); |
+COMPILE_ASSERT(offsetof(UnsubscribeUniformCHROMIUM, location) == 4, |
+ OffsetOf_UnsubscribeUniformCHROMIUM_location_not_4); |
+ |
+struct PopulateSubscribedUniformsCHROMIUM { |
+ typedef PopulateSubscribedUniformsCHROMIUM ValueType; |
+ static const CommandId kCmdId = kPopulateSubscribedUniformsCHROMIUM; |
+ 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() { SetHeader(); } |
+ |
+ void* Set(void* cmd) { |
+ static_cast<ValueType*>(cmd)->Init(); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+}; |
+ |
+COMPILE_ASSERT(sizeof(PopulateSubscribedUniformsCHROMIUM) == 4, |
+ Sizeof_PopulateSubscribedUniformsCHROMIUM_is_not_4); |
+COMPILE_ASSERT(offsetof(PopulateSubscribedUniformsCHROMIUM, header) == 0, |
+ OffsetOf_PopulateSubscribedUniformsCHROMIUM_header_not_0); |
+ |
struct BindTexImage2DCHROMIUM { |
typedef BindTexImage2DCHROMIUM ValueType; |
static const CommandId kCmdId = kBindTexImage2DCHROMIUM; |