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 d7e887dfbf61a2ea7b000be677ed88780f89b24b..c5a9d51131b023798770a4d036a3d4b9c1fb0af1 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
@@ -10830,6 +10830,36 @@ COMPILE_ASSERT(offsetof(DiscardFramebufferEXTImmediate, target) == 4, |
COMPILE_ASSERT(offsetof(DiscardFramebufferEXTImmediate, count) == 8, |
OffsetOf_DiscardFramebufferEXTImmediate_count_not_8); |
+struct LoseContextCHROMIUM { |
+ typedef LoseContextCHROMIUM ValueType; |
+ static const CommandId kCmdId = kLoseContextCHROMIUM; |
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
+ |
+ static uint32 ComputeSize() { |
+ return static_cast<uint32>(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(LoseContextCHROMIUM) == 4, |
+ Sizeof_LoseContextCHROMIUM_is_not_4); |
+COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, header) == 0, |
+ OffsetOf_LoseContextCHROMIUM_header_not_0); |
+ |
#endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |