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 2f1e47f72ddd22f8ba1dd50d689d196954b5e8f4..3ec79a26dbdcb0567690e45751d78ab3fb7be909 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
@@ -13084,6 +13084,52 @@ static_assert(offsetof(BindTexImage2DCHROMIUM, target) == 4, |
static_assert(offsetof(BindTexImage2DCHROMIUM, imageId) == 8, |
"offset of BindTexImage2DCHROMIUM imageId should be 8"); |
+struct BindTexImage2DWithInternalformatCHROMIUM { |
+ typedef BindTexImage2DWithInternalformatCHROMIUM ValueType; |
+ static const CommandId kCmdId = kBindTexImage2DWithInternalformatCHROMIUM; |
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
+ static const uint8_t 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 _internalformat, GLint _imageId) { |
+ SetHeader(); |
+ target = _target; |
+ internalformat = _internalformat; |
+ imageId = _imageId; |
+ } |
+ |
+ void* Set(void* cmd, GLenum _target, GLenum _internalformat, GLint _imageId) { |
+ static_cast<ValueType*>(cmd)->Init(_target, _internalformat, _imageId); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+ uint32_t target; |
+ uint32_t internalformat; |
+ int32_t imageId; |
+}; |
+ |
+static_assert(sizeof(BindTexImage2DWithInternalformatCHROMIUM) == 16, |
+ "size of BindTexImage2DWithInternalformatCHROMIUM should be 16"); |
+static_assert( |
+ offsetof(BindTexImage2DWithInternalformatCHROMIUM, header) == 0, |
+ "offset of BindTexImage2DWithInternalformatCHROMIUM header should be 0"); |
+static_assert( |
+ offsetof(BindTexImage2DWithInternalformatCHROMIUM, target) == 4, |
+ "offset of BindTexImage2DWithInternalformatCHROMIUM target should be 4"); |
+static_assert(offsetof(BindTexImage2DWithInternalformatCHROMIUM, |
+ internalformat) == 8, |
+ "offset of BindTexImage2DWithInternalformatCHROMIUM " |
+ "internalformat should be 8"); |
+static_assert( |
+ offsetof(BindTexImage2DWithInternalformatCHROMIUM, imageId) == 12, |
+ "offset of BindTexImage2DWithInternalformatCHROMIUM imageId should be 12"); |
+ |
struct ReleaseTexImage2DCHROMIUM { |
typedef ReleaseTexImage2DCHROMIUM ValueType; |
static const CommandId kCmdId = kReleaseTexImage2DCHROMIUM; |