| 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..1e06b31cc81c2cc01b11bece557031a208650203 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| @@ -15598,4 +15598,37 @@ static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12,
|
| static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16,
|
| "offset of SwapBuffersWithDamageCHROMIUM height should be 16");
|
|
|
| +struct SetSurfaceHandleCHROMIUM {
|
| + typedef SetSurfaceHandleCHROMIUM ValueType;
|
| + static const CommandId kCmdId = kSetSurfaceHandleCHROMIUM;
|
| + 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(GLint _surfaceHandle) {
|
| + SetHeader();
|
| + surfaceHandle = _surfaceHandle;
|
| + }
|
| +
|
| + void* Set(void* cmd, GLint _surfaceHandle) {
|
| + static_cast<ValueType*>(cmd)->Init(_surfaceHandle);
|
| + return NextCmdAddress<ValueType>(cmd);
|
| + }
|
| +
|
| + gpu::CommandHeader header;
|
| + int32_t surfaceHandle;
|
| +};
|
| +
|
| +static_assert(sizeof(SetSurfaceHandleCHROMIUM) == 8,
|
| + "size of SetSurfaceHandleCHROMIUM should be 8");
|
| +static_assert(offsetof(SetSurfaceHandleCHROMIUM, header) == 0,
|
| + "offset of SetSurfaceHandleCHROMIUM header should be 0");
|
| +static_assert(offsetof(SetSurfaceHandleCHROMIUM, surfaceHandle) == 4,
|
| + "offset of SetSurfaceHandleCHROMIUM surfaceHandle should be 4");
|
| +
|
| #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
|
|
|