| 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 3f3fe78311572f138b70648014065d7707f03f07..41c77fee6691b622f6f4a7b22dcc7360a1319e94 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
| @@ -12951,288 +12951,6 @@ static_assert(
|
| offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12,
|
| "offset of BindUniformLocationCHROMIUMBucket name_bucket_id should be 12");
|
|
|
| -struct GenValuebuffersCHROMIUMImmediate {
|
| - typedef GenValuebuffersCHROMIUMImmediate ValueType;
|
| - static const CommandId kCmdId = kGenValuebuffersCHROMIUMImmediate;
|
| - static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN;
|
| - static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
|
| -
|
| - static uint32_t ComputeDataSize(GLsizei n) {
|
| - return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT
|
| - }
|
| -
|
| - static uint32_t ComputeSize(GLsizei n) {
|
| - return static_cast<uint32_t>(sizeof(ValueType) +
|
| - ComputeDataSize(n)); // NOLINT
|
| - }
|
| -
|
| - void SetHeader(GLsizei n) {
|
| - header.SetCmdByTotalSize<ValueType>(ComputeSize(n));
|
| - }
|
| -
|
| - void Init(GLsizei _n, GLuint* _buffers) {
|
| - SetHeader(_n);
|
| - n = _n;
|
| - memcpy(ImmediateDataAddress(this), _buffers, ComputeDataSize(_n));
|
| - }
|
| -
|
| - void* Set(void* cmd, GLsizei _n, GLuint* _buffers) {
|
| - static_cast<ValueType*>(cmd)->Init(_n, _buffers);
|
| - const uint32_t size = ComputeSize(_n);
|
| - return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
|
| - }
|
| -
|
| - gpu::CommandHeader header;
|
| - int32_t n;
|
| -};
|
| -
|
| -static_assert(sizeof(GenValuebuffersCHROMIUMImmediate) == 8,
|
| - "size of GenValuebuffersCHROMIUMImmediate should be 8");
|
| -static_assert(offsetof(GenValuebuffersCHROMIUMImmediate, header) == 0,
|
| - "offset of GenValuebuffersCHROMIUMImmediate header should be 0");
|
| -static_assert(offsetof(GenValuebuffersCHROMIUMImmediate, n) == 4,
|
| - "offset of GenValuebuffersCHROMIUMImmediate n should be 4");
|
| -
|
| -struct DeleteValuebuffersCHROMIUMImmediate {
|
| - typedef DeleteValuebuffersCHROMIUMImmediate ValueType;
|
| - static const CommandId kCmdId = kDeleteValuebuffersCHROMIUMImmediate;
|
| - static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN;
|
| - static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
|
| -
|
| - static uint32_t ComputeDataSize(GLsizei n) {
|
| - return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT
|
| - }
|
| -
|
| - static uint32_t ComputeSize(GLsizei n) {
|
| - return static_cast<uint32_t>(sizeof(ValueType) +
|
| - ComputeDataSize(n)); // NOLINT
|
| - }
|
| -
|
| - void SetHeader(GLsizei n) {
|
| - header.SetCmdByTotalSize<ValueType>(ComputeSize(n));
|
| - }
|
| -
|
| - void Init(GLsizei _n, const GLuint* _valuebuffers) {
|
| - SetHeader(_n);
|
| - n = _n;
|
| - memcpy(ImmediateDataAddress(this), _valuebuffers, ComputeDataSize(_n));
|
| - }
|
| -
|
| - void* Set(void* cmd, GLsizei _n, const GLuint* _valuebuffers) {
|
| - static_cast<ValueType*>(cmd)->Init(_n, _valuebuffers);
|
| - const uint32_t size = ComputeSize(_n);
|
| - return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
|
| - }
|
| -
|
| - gpu::CommandHeader header;
|
| - int32_t n;
|
| -};
|
| -
|
| -static_assert(sizeof(DeleteValuebuffersCHROMIUMImmediate) == 8,
|
| - "size of DeleteValuebuffersCHROMIUMImmediate should be 8");
|
| -static_assert(
|
| - offsetof(DeleteValuebuffersCHROMIUMImmediate, header) == 0,
|
| - "offset of DeleteValuebuffersCHROMIUMImmediate header should be 0");
|
| -static_assert(offsetof(DeleteValuebuffersCHROMIUMImmediate, n) == 4,
|
| - "offset of DeleteValuebuffersCHROMIUMImmediate n should be 4");
|
| -
|
| -struct IsValuebufferCHROMIUM {
|
| - typedef IsValuebufferCHROMIUM ValueType;
|
| - static const CommandId kCmdId = kIsValuebufferCHROMIUM;
|
| - static const cmd::ArgFlags kArgFlags = cmd::kFixed;
|
| - static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
|
| -
|
| - typedef uint32_t Result;
|
| -
|
| - static uint32_t ComputeSize() {
|
| - return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
|
| - }
|
| -
|
| - void SetHeader() { header.SetCmd<ValueType>(); }
|
| -
|
| - void Init(GLuint _valuebuffer,
|
| - uint32_t _result_shm_id,
|
| - uint32_t _result_shm_offset) {
|
| - SetHeader();
|
| - valuebuffer = _valuebuffer;
|
| - result_shm_id = _result_shm_id;
|
| - result_shm_offset = _result_shm_offset;
|
| - }
|
| -
|
| - void* Set(void* cmd,
|
| - GLuint _valuebuffer,
|
| - uint32_t _result_shm_id,
|
| - uint32_t _result_shm_offset) {
|
| - static_cast<ValueType*>(cmd)->Init(_valuebuffer, _result_shm_id,
|
| - _result_shm_offset);
|
| - return NextCmdAddress<ValueType>(cmd);
|
| - }
|
| -
|
| - gpu::CommandHeader header;
|
| - uint32_t valuebuffer;
|
| - uint32_t result_shm_id;
|
| - uint32_t result_shm_offset;
|
| -};
|
| -
|
| -static_assert(sizeof(IsValuebufferCHROMIUM) == 16,
|
| - "size of IsValuebufferCHROMIUM should be 16");
|
| -static_assert(offsetof(IsValuebufferCHROMIUM, header) == 0,
|
| - "offset of IsValuebufferCHROMIUM header should be 0");
|
| -static_assert(offsetof(IsValuebufferCHROMIUM, valuebuffer) == 4,
|
| - "offset of IsValuebufferCHROMIUM valuebuffer should be 4");
|
| -static_assert(offsetof(IsValuebufferCHROMIUM, result_shm_id) == 8,
|
| - "offset of IsValuebufferCHROMIUM result_shm_id should be 8");
|
| -static_assert(offsetof(IsValuebufferCHROMIUM, result_shm_offset) == 12,
|
| - "offset of IsValuebufferCHROMIUM result_shm_offset should be 12");
|
| -
|
| -struct BindValuebufferCHROMIUM {
|
| - typedef BindValuebufferCHROMIUM ValueType;
|
| - static const CommandId kCmdId = kBindValuebufferCHROMIUM;
|
| - 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(GLenum _target, GLuint _valuebuffer) {
|
| - SetHeader();
|
| - target = _target;
|
| - valuebuffer = _valuebuffer;
|
| - }
|
| -
|
| - void* Set(void* cmd, GLenum _target, GLuint _valuebuffer) {
|
| - static_cast<ValueType*>(cmd)->Init(_target, _valuebuffer);
|
| - return NextCmdAddress<ValueType>(cmd);
|
| - }
|
| -
|
| - gpu::CommandHeader header;
|
| - uint32_t target;
|
| - uint32_t valuebuffer;
|
| -};
|
| -
|
| -static_assert(sizeof(BindValuebufferCHROMIUM) == 12,
|
| - "size of BindValuebufferCHROMIUM should be 12");
|
| -static_assert(offsetof(BindValuebufferCHROMIUM, header) == 0,
|
| - "offset of BindValuebufferCHROMIUM header should be 0");
|
| -static_assert(offsetof(BindValuebufferCHROMIUM, target) == 4,
|
| - "offset of BindValuebufferCHROMIUM target should be 4");
|
| -static_assert(offsetof(BindValuebufferCHROMIUM, valuebuffer) == 8,
|
| - "offset of BindValuebufferCHROMIUM valuebuffer should be 8");
|
| -
|
| -struct SubscribeValueCHROMIUM {
|
| - typedef SubscribeValueCHROMIUM ValueType;
|
| - static const CommandId kCmdId = kSubscribeValueCHROMIUM;
|
| - 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(GLenum _target, GLenum _subscription) {
|
| - SetHeader();
|
| - target = _target;
|
| - subscription = _subscription;
|
| - }
|
| -
|
| - void* Set(void* cmd, GLenum _target, GLenum _subscription) {
|
| - static_cast<ValueType*>(cmd)->Init(_target, _subscription);
|
| - return NextCmdAddress<ValueType>(cmd);
|
| - }
|
| -
|
| - gpu::CommandHeader header;
|
| - uint32_t target;
|
| - uint32_t subscription;
|
| -};
|
| -
|
| -static_assert(sizeof(SubscribeValueCHROMIUM) == 12,
|
| - "size of SubscribeValueCHROMIUM should be 12");
|
| -static_assert(offsetof(SubscribeValueCHROMIUM, header) == 0,
|
| - "offset of SubscribeValueCHROMIUM header should be 0");
|
| -static_assert(offsetof(SubscribeValueCHROMIUM, target) == 4,
|
| - "offset of SubscribeValueCHROMIUM target should be 4");
|
| -static_assert(offsetof(SubscribeValueCHROMIUM, subscription) == 8,
|
| - "offset of SubscribeValueCHROMIUM subscription should be 8");
|
| -
|
| -struct PopulateSubscribedValuesCHROMIUM {
|
| - typedef PopulateSubscribedValuesCHROMIUM ValueType;
|
| - static const CommandId kCmdId = kPopulateSubscribedValuesCHROMIUM;
|
| - 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(GLenum _target) {
|
| - SetHeader();
|
| - target = _target;
|
| - }
|
| -
|
| - void* Set(void* cmd, GLenum _target) {
|
| - static_cast<ValueType*>(cmd)->Init(_target);
|
| - return NextCmdAddress<ValueType>(cmd);
|
| - }
|
| -
|
| - gpu::CommandHeader header;
|
| - uint32_t target;
|
| -};
|
| -
|
| -static_assert(sizeof(PopulateSubscribedValuesCHROMIUM) == 8,
|
| - "size of PopulateSubscribedValuesCHROMIUM should be 8");
|
| -static_assert(offsetof(PopulateSubscribedValuesCHROMIUM, header) == 0,
|
| - "offset of PopulateSubscribedValuesCHROMIUM header should be 0");
|
| -static_assert(offsetof(PopulateSubscribedValuesCHROMIUM, target) == 4,
|
| - "offset of PopulateSubscribedValuesCHROMIUM target should be 4");
|
| -
|
| -struct UniformValuebufferCHROMIUM {
|
| - typedef UniformValuebufferCHROMIUM ValueType;
|
| - static const CommandId kCmdId = kUniformValuebufferCHROMIUM;
|
| - 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 _location, GLenum _target, GLenum _subscription) {
|
| - SetHeader();
|
| - location = _location;
|
| - target = _target;
|
| - subscription = _subscription;
|
| - }
|
| -
|
| - void* Set(void* cmd, GLint _location, GLenum _target, GLenum _subscription) {
|
| - static_cast<ValueType*>(cmd)->Init(_location, _target, _subscription);
|
| - return NextCmdAddress<ValueType>(cmd);
|
| - }
|
| -
|
| - gpu::CommandHeader header;
|
| - int32_t location;
|
| - uint32_t target;
|
| - uint32_t subscription;
|
| -};
|
| -
|
| -static_assert(sizeof(UniformValuebufferCHROMIUM) == 16,
|
| - "size of UniformValuebufferCHROMIUM should be 16");
|
| -static_assert(offsetof(UniformValuebufferCHROMIUM, header) == 0,
|
| - "offset of UniformValuebufferCHROMIUM header should be 0");
|
| -static_assert(offsetof(UniformValuebufferCHROMIUM, location) == 4,
|
| - "offset of UniformValuebufferCHROMIUM location should be 4");
|
| -static_assert(offsetof(UniformValuebufferCHROMIUM, target) == 8,
|
| - "offset of UniformValuebufferCHROMIUM target should be 8");
|
| -static_assert(offsetof(UniformValuebufferCHROMIUM, subscription) == 12,
|
| - "offset of UniformValuebufferCHROMIUM subscription should be 12");
|
| -
|
| struct BindTexImage2DCHROMIUM {
|
| typedef BindTexImage2DCHROMIUM ValueType;
|
| static const CommandId kCmdId = kBindTexImage2DCHROMIUM;
|
|
|