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 ff02094ec043ee9f7143479193f07fa12aab3286..4242ddbbb84203668f6a96763dd64dce8a83175b 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h |
@@ -15553,6 +15553,62 @@ static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, |
"offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " |
"transpose should be 8"); |
+struct SendOverlayPromotionHintCHROMIUM { |
+ typedef SendOverlayPromotionHintCHROMIUM ValueType; |
+ static const CommandId kCmdId = kSendOverlayPromotionHintCHROMIUM; |
+ 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(GLuint _texture, |
+ GLboolean _promotion_hint, |
+ GLint _display_x, |
+ GLint _display_y) { |
+ SetHeader(); |
+ texture = _texture; |
+ promotion_hint = _promotion_hint; |
+ display_x = _display_x; |
+ display_y = _display_y; |
+ } |
+ |
+ void* Set(void* cmd, |
+ GLuint _texture, |
+ GLboolean _promotion_hint, |
+ GLint _display_x, |
+ GLint _display_y) { |
+ static_cast<ValueType*>(cmd)->Init(_texture, _promotion_hint, _display_x, |
+ _display_y); |
+ return NextCmdAddress<ValueType>(cmd); |
+ } |
+ |
+ gpu::CommandHeader header; |
+ uint32_t texture; |
+ uint32_t promotion_hint; |
+ int32_t display_x; |
+ int32_t display_y; |
+}; |
+ |
+static_assert(sizeof(SendOverlayPromotionHintCHROMIUM) == 20, |
+ "size of SendOverlayPromotionHintCHROMIUM should be 20"); |
+static_assert(offsetof(SendOverlayPromotionHintCHROMIUM, header) == 0, |
+ "offset of SendOverlayPromotionHintCHROMIUM header should be 0"); |
+static_assert(offsetof(SendOverlayPromotionHintCHROMIUM, texture) == 4, |
+ "offset of SendOverlayPromotionHintCHROMIUM texture should be 4"); |
+static_assert( |
+ offsetof(SendOverlayPromotionHintCHROMIUM, promotion_hint) == 8, |
+ "offset of SendOverlayPromotionHintCHROMIUM promotion_hint should be 8"); |
+static_assert( |
+ offsetof(SendOverlayPromotionHintCHROMIUM, display_x) == 12, |
+ "offset of SendOverlayPromotionHintCHROMIUM display_x should be 12"); |
+static_assert( |
+ offsetof(SendOverlayPromotionHintCHROMIUM, display_y) == 16, |
+ "offset of SendOverlayPromotionHintCHROMIUM display_y should be 16"); |
+ |
struct SwapBuffersWithDamageCHROMIUM { |
typedef SwapBuffersWithDamageCHROMIUM ValueType; |
static const CommandId kCmdId = kSwapBuffersWithDamageCHROMIUM; |