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 47c2b68382c6b654efe60ee18934a04c6317f8ab..12b90c9c7be1a7c774491ffc2635484d6023f230 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
@@ -3374,6 +3374,69 @@ static_assert(offsetof(GetActiveUniform::Result, type) == 8, |
"offset of GetActiveUniform Result type should be " |
"8"); |
+struct GetActiveUniformBlockName { |
+ typedef GetActiveUniformBlockName ValueType; |
+ static const CommandId kCmdId = kGetActiveUniformBlockName; |
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
+ static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
+ |
+ typedef int32_t Result; |
+ |
+ static uint32_t ComputeSize() { |
+ return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
+ } |
+ |
+ void SetHeader() { header.SetCmd<ValueType>(); } |
+ |
+ void Init(GLuint _program, |
+ GLuint _index, |
+ uint32_t _name_bucket_id, |
+ uint32_t _result_shm_id, |
+ uint32_t _result_shm_offset) { |
+ SetHeader(); |
+ program = _program; |
+ index = _index; |
+ name_bucket_id = _name_bucket_id; |
+ result_shm_id = _result_shm_id; |
+ result_shm_offset = _result_shm_offset; |
+ } |
+ |
+ void* Set(void* cmd, |
+ GLuint _program, |
+ GLuint _index, |
+ uint32_t _name_bucket_id, |
+ uint32_t _result_shm_id, |
+ uint32_t _result_shm_offset) { |
+ static_cast<ValueType*>(cmd)->Init(_program, _index, _name_bucket_id, |
+ _result_shm_id, _result_shm_offset); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+ uint32_t program; |
+ uint32_t index; |
+ uint32_t name_bucket_id; |
+ uint32_t result_shm_id; |
+ uint32_t result_shm_offset; |
+}; |
+ |
+static_assert(sizeof(GetActiveUniformBlockName) == 24, |
+ "size of GetActiveUniformBlockName should be 24"); |
+static_assert(offsetof(GetActiveUniformBlockName, header) == 0, |
+ "offset of GetActiveUniformBlockName header should be 0"); |
+static_assert(offsetof(GetActiveUniformBlockName, program) == 4, |
+ "offset of GetActiveUniformBlockName program should be 4"); |
+static_assert(offsetof(GetActiveUniformBlockName, index) == 8, |
+ "offset of GetActiveUniformBlockName index should be 8"); |
+static_assert( |
+ offsetof(GetActiveUniformBlockName, name_bucket_id) == 12, |
+ "offset of GetActiveUniformBlockName name_bucket_id should be 12"); |
+static_assert(offsetof(GetActiveUniformBlockName, result_shm_id) == 16, |
+ "offset of GetActiveUniformBlockName result_shm_id should be 16"); |
+static_assert( |
+ offsetof(GetActiveUniformBlockName, result_shm_offset) == 20, |
+ "offset of GetActiveUniformBlockName result_shm_offset should be 20"); |
+ |
struct GetAttachedShaders { |
typedef GetAttachedShaders ValueType; |
static const CommandId kCmdId = kGetAttachedShaders; |
@@ -4516,6 +4579,61 @@ static_assert(offsetof(GetTexParameteriv, params_shm_id) == 12, |
static_assert(offsetof(GetTexParameteriv, params_shm_offset) == 16, |
"offset of GetTexParameteriv params_shm_offset should be 16"); |
+struct GetUniformBlockIndex { |
+ typedef GetUniformBlockIndex ValueType; |
+ static const CommandId kCmdId = kGetUniformBlockIndex; |
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
+ static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
+ |
+ typedef GLuint Result; |
+ |
+ static uint32_t ComputeSize() { |
+ return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
+ } |
+ |
+ void SetHeader() { header.SetCmd<ValueType>(); } |
+ |
+ void Init(GLuint _program, |
+ uint32_t _name_bucket_id, |
+ uint32_t _index_shm_id, |
+ uint32_t _index_shm_offset) { |
+ SetHeader(); |
+ program = _program; |
+ name_bucket_id = _name_bucket_id; |
+ index_shm_id = _index_shm_id; |
+ index_shm_offset = _index_shm_offset; |
+ } |
+ |
+ void* Set(void* cmd, |
+ GLuint _program, |
+ uint32_t _name_bucket_id, |
+ uint32_t _index_shm_id, |
+ uint32_t _index_shm_offset) { |
+ static_cast<ValueType*>(cmd) |
+ ->Init(_program, _name_bucket_id, _index_shm_id, _index_shm_offset); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+ uint32_t program; |
+ uint32_t name_bucket_id; |
+ uint32_t index_shm_id; |
+ uint32_t index_shm_offset; |
+}; |
+ |
+static_assert(sizeof(GetUniformBlockIndex) == 20, |
+ "size of GetUniformBlockIndex should be 20"); |
+static_assert(offsetof(GetUniformBlockIndex, header) == 0, |
+ "offset of GetUniformBlockIndex header should be 0"); |
+static_assert(offsetof(GetUniformBlockIndex, program) == 4, |
+ "offset of GetUniformBlockIndex program should be 4"); |
+static_assert(offsetof(GetUniformBlockIndex, name_bucket_id) == 8, |
+ "offset of GetUniformBlockIndex name_bucket_id should be 8"); |
+static_assert(offsetof(GetUniformBlockIndex, index_shm_id) == 12, |
+ "offset of GetUniformBlockIndex index_shm_id should be 12"); |
+static_assert(offsetof(GetUniformBlockIndex, index_shm_offset) == 16, |
+ "offset of GetUniformBlockIndex index_shm_offset should be 16"); |
+ |
struct GetUniformfv { |
typedef GetUniformfv ValueType; |
static const CommandId kCmdId = kGetUniformfv; |
@@ -10512,6 +10630,45 @@ static_assert(offsetof(GetProgramInfoCHROMIUM::Result, num_uniforms) == 8, |
"offset of GetProgramInfoCHROMIUM Result num_uniforms should be " |
"8"); |
+struct GetUniformBlocksCHROMIUM { |
+ typedef GetUniformBlocksCHROMIUM ValueType; |
+ static const CommandId kCmdId = kGetUniformBlocksCHROMIUM; |
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
+ static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
+ |
+ typedef uint32_t Result; |
+ |
+ static uint32_t ComputeSize() { |
+ return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
+ } |
+ |
+ void SetHeader() { header.SetCmd<ValueType>(); } |
+ |
+ void Init(GLuint _program, uint32_t _bucket_id) { |
+ SetHeader(); |
+ program = _program; |
+ bucket_id = _bucket_id; |
+ } |
+ |
+ void* Set(void* cmd, GLuint _program, uint32_t _bucket_id) { |
+ static_cast<ValueType*>(cmd)->Init(_program, _bucket_id); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+ uint32_t program; |
+ uint32_t bucket_id; |
+}; |
+ |
+static_assert(sizeof(GetUniformBlocksCHROMIUM) == 12, |
+ "size of GetUniformBlocksCHROMIUM should be 12"); |
+static_assert(offsetof(GetUniformBlocksCHROMIUM, header) == 0, |
+ "offset of GetUniformBlocksCHROMIUM header should be 0"); |
+static_assert(offsetof(GetUniformBlocksCHROMIUM, program) == 4, |
+ "offset of GetUniformBlocksCHROMIUM program should be 4"); |
+static_assert(offsetof(GetUniformBlocksCHROMIUM, bucket_id) == 8, |
+ "offset of GetUniformBlocksCHROMIUM bucket_id should be 8"); |
+ |
struct GetTranslatedShaderSourceANGLE { |
typedef GetTranslatedShaderSourceANGLE ValueType; |
static const CommandId kCmdId = kGetTranslatedShaderSourceANGLE; |