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 f6f4a18452466390fb8e3c94c102244c3bbf09fa..bead3390516a853de4b8d8b37ade2a8d4f2b6859 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
@@ -11907,6 +11907,67 @@ static_assert(offsetof(CopySubTextureCHROMIUM, xoffset) == 16, |
static_assert(offsetof(CopySubTextureCHROMIUM, yoffset) == 20, |
"offset of CopySubTextureCHROMIUM yoffset should be 20"); |
+struct CompressedCopyTextureCHROMIUM { |
+ typedef CompressedCopyTextureCHROMIUM ValueType; |
+ static const CommandId kCmdId = kCompressedCopyTextureCHROMIUM; |
+ 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, |
+ GLenum _internalformat, |
+ GLsizei _source_size) { |
+ SetHeader(); |
+ target = _target; |
+ source_id = _source_id; |
+ dest_id = _dest_id; |
+ internalformat = _internalformat; |
+ source_size = _source_size; |
+ } |
+ |
+ void* Set(void* cmd, |
+ GLenum _target, |
+ GLenum _source_id, |
+ GLenum _dest_id, |
+ GLenum _internalformat, |
+ GLsizei _source_size) { |
+ static_cast<ValueType*>(cmd) |
+ ->Init(_target, _source_id, _dest_id, _internalformat, _source_size); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+ uint32_t target; |
+ uint32_t source_id; |
+ uint32_t dest_id; |
+ uint32_t internalformat; |
+ int32_t source_size; |
+}; |
+ |
+static_assert(sizeof(CompressedCopyTextureCHROMIUM) == 24, |
+ "size of CompressedCopyTextureCHROMIUM should be 24"); |
+static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0, |
+ "offset of CompressedCopyTextureCHROMIUM header should be 0"); |
+static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4, |
+ "offset of CompressedCopyTextureCHROMIUM target should be 4"); |
+static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8, |
+ "offset of CompressedCopyTextureCHROMIUM source_id should be 8"); |
+static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12, |
+ "offset of CompressedCopyTextureCHROMIUM dest_id should be 12"); |
+static_assert( |
+ offsetof(CompressedCopyTextureCHROMIUM, internalformat) == 16, |
+ "offset of CompressedCopyTextureCHROMIUM internalformat should be 16"); |
+static_assert( |
+ offsetof(CompressedCopyTextureCHROMIUM, source_size) == 20, |
+ "offset of CompressedCopyTextureCHROMIUM source_size should be 20"); |
+ |
struct DrawArraysInstancedANGLE { |
typedef DrawArraysInstancedANGLE ValueType; |
static const CommandId kCmdId = kDrawArraysInstancedANGLE; |