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 b45640b3c78a94b53b2804658e5f12dd45cf3e80..4d614e063d2c22bd0092d442e1cde6c38e536713 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
@@ -10081,6 +10081,44 @@ COMPILE_ASSERT( |
offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, |
OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12); // NOLINT |
+struct TexImagePixmap2DCHROMIUM { |
+ typedef TexImagePixmap2DCHROMIUM ValueType; |
+ static const CommandId kCmdId = kTexImagePixmap2DCHROMIUM; |
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
+ |
+ static uint32 ComputeSize() { |
+ return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
+ } |
+ |
+ void SetHeader() { |
+ header.SetCmd<ValueType>(); |
+ } |
+ |
+ void Init(GLenum _target, GLuint _pixmapId) { |
+ SetHeader(); |
+ target = _target; |
+ pixmapId = _pixmapId; |
+ } |
+ |
+ void* Set(void* cmd, GLenum _target, GLuint _pixmapId) { |
+ static_cast<ValueType*>(cmd)->Init(_target, _pixmapId); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+ uint32 target; |
+ uint32 pixmapId; |
+}; |
+ |
+COMPILE_ASSERT(sizeof(TexImagePixmap2DCHROMIUM) == 12, |
+ Sizeof_TexImagePixmap2DCHROMIUM_is_not_12); |
+COMPILE_ASSERT(offsetof(TexImagePixmap2DCHROMIUM, header) == 0, |
+ OffsetOf_TexImagePixmap2DCHROMIUM_header_not_0); |
+COMPILE_ASSERT(offsetof(TexImagePixmap2DCHROMIUM, target) == 4, |
+ OffsetOf_TexImagePixmap2DCHROMIUM_target_not_4); |
+COMPILE_ASSERT(offsetof(TexImagePixmap2DCHROMIUM, pixmapId) == 8, |
+ OffsetOf_TexImagePixmap2DCHROMIUM_pixmapId_not_8); |
+ |
#endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |