| 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 7d678caed89bd29bf26a371ca2086ade71088c14..8c807de1fc1c030f6145cd158c3c119d52cab538 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| @@ -9999,6 +9999,82 @@ static_assert(offsetof(UniformMatrix4x3fvImmediate, count) == 8,
|
| static_assert(offsetof(UniformMatrix4x3fvImmediate, transpose) == 12,
|
| "offset of UniformMatrix4x3fvImmediate transpose should be 12");
|
|
|
| +struct UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate {
|
| + typedef UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate ValueType;
|
| + static const CommandId kCmdId =
|
| + kUniformMatrix4fvWithCustomMatrixCHROMIUMImmediate;
|
| + static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN;
|
| + static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
|
| +
|
| + static uint32_t ComputeDataSize(GLsizei count) {
|
| + return static_cast<uint32_t>(sizeof(GLfloat) * 16 * count); // NOLINT
|
| + }
|
| +
|
| + static uint32_t ComputeSize(GLsizei count) {
|
| + return static_cast<uint32_t>(sizeof(ValueType) +
|
| + ComputeDataSize(count)); // NOLINT
|
| + }
|
| +
|
| + void SetHeader(GLsizei count) {
|
| + header.SetCmdByTotalSize<ValueType>(ComputeSize(count));
|
| + }
|
| +
|
| + void Init(GLint _location,
|
| + GLsizei _count,
|
| + GLint _custom_matrix_id,
|
| + GLboolean _transpose,
|
| + const GLfloat* _default_value) {
|
| + SetHeader(_count);
|
| + location = _location;
|
| + count = _count;
|
| + custom_matrix_id = _custom_matrix_id;
|
| + transpose = _transpose;
|
| + memcpy(ImmediateDataAddress(this), _default_value, ComputeDataSize(_count));
|
| + }
|
| +
|
| + void* Set(void* cmd,
|
| + GLint _location,
|
| + GLsizei _count,
|
| + GLint _custom_matrix_id,
|
| + GLboolean _transpose,
|
| + const GLfloat* _default_value) {
|
| + static_cast<ValueType*>(cmd)->Init(_location, _count, _custom_matrix_id,
|
| + _transpose, _default_value);
|
| + const uint32_t size = ComputeSize(_count);
|
| + return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
|
| + }
|
| +
|
| + gpu::CommandHeader header;
|
| + int32_t location;
|
| + int32_t count;
|
| + int32_t custom_matrix_id;
|
| + uint32_t transpose;
|
| +};
|
| +
|
| +static_assert(
|
| + sizeof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate) == 20,
|
| + "size of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate should be 20");
|
| +static_assert(offsetof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate,
|
| + header) == 0,
|
| + "offset of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate "
|
| + "header should be 0");
|
| +static_assert(offsetof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate,
|
| + location) == 4,
|
| + "offset of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate "
|
| + "location should be 4");
|
| +static_assert(offsetof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate,
|
| + count) == 8,
|
| + "offset of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate "
|
| + "count should be 8");
|
| +static_assert(offsetof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate,
|
| + custom_matrix_id) == 12,
|
| + "offset of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate "
|
| + "custom_matrix_id should be 12");
|
| +static_assert(offsetof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate,
|
| + transpose) == 16,
|
| + "offset of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate "
|
| + "transpose should be 16");
|
| +
|
| struct UseProgram {
|
| typedef UseProgram ValueType;
|
| static const CommandId kCmdId = kUseProgram;
|
|
|