OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
9 | 9 |
10 struct ActiveTexture { | 10 struct ActiveTexture { |
(...skipping 3199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3210 COMPILE_ASSERT(offsetof(GetBufferParameteriv, params_shm_id) == 12, | 3210 COMPILE_ASSERT(offsetof(GetBufferParameteriv, params_shm_id) == 12, |
3211 OffsetOf_GetBufferParameteriv_params_shm_id_not_12); | 3211 OffsetOf_GetBufferParameteriv_params_shm_id_not_12); |
3212 COMPILE_ASSERT(offsetof(GetBufferParameteriv, params_shm_offset) == 16, | 3212 COMPILE_ASSERT(offsetof(GetBufferParameteriv, params_shm_offset) == 16, |
3213 OffsetOf_GetBufferParameteriv_params_shm_offset_not_16); | 3213 OffsetOf_GetBufferParameteriv_params_shm_offset_not_16); |
3214 | 3214 |
3215 struct GetError { | 3215 struct GetError { |
3216 typedef GetError ValueType; | 3216 typedef GetError ValueType; |
3217 static const CommandId kCmdId = kGetError; | 3217 static const CommandId kCmdId = kGetError; |
3218 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3218 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3219 | 3219 |
| 3220 typedef GLenum Result; |
| 3221 |
3220 static uint32 ComputeSize() { | 3222 static uint32 ComputeSize() { |
3221 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 3223 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
3222 } | 3224 } |
3223 | 3225 |
3224 void SetHeader() { | 3226 void SetHeader() { |
3225 header.SetCmd<ValueType>(); | 3227 header.SetCmd<ValueType>(); |
3226 } | 3228 } |
3227 | 3229 |
3228 void Init(uint32 _result_shm_id, uint32 _result_shm_offset) { | 3230 void Init(uint32 _result_shm_id, uint32 _result_shm_offset) { |
3229 SetHeader(); | 3231 SetHeader(); |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3455 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3457 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3456 | 3458 |
3457 static uint32 ComputeSize() { | 3459 static uint32 ComputeSize() { |
3458 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 3460 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
3459 } | 3461 } |
3460 | 3462 |
3461 void SetHeader() { | 3463 void SetHeader() { |
3462 header.SetCmd<ValueType>(); | 3464 header.SetCmd<ValueType>(); |
3463 } | 3465 } |
3464 | 3466 |
3465 void Init( | 3467 void Init(GLuint _program, uint32 _bucket_id) { |
3466 GLuint _program, GLsizei _bufsize, uint32 _length_shm_id, | |
3467 uint32 _length_shm_offset, uint32 _infolog_shm_id, | |
3468 uint32 _infolog_shm_offset) { | |
3469 SetHeader(); | 3468 SetHeader(); |
3470 program = _program; | 3469 program = _program; |
3471 bufsize = _bufsize; | 3470 bucket_id = _bucket_id; |
3472 length_shm_id = _length_shm_id; | |
3473 length_shm_offset = _length_shm_offset; | |
3474 infolog_shm_id = _infolog_shm_id; | |
3475 infolog_shm_offset = _infolog_shm_offset; | |
3476 } | 3471 } |
3477 | 3472 |
3478 void* Set( | 3473 void* Set(void* cmd, GLuint _program, uint32 _bucket_id) { |
3479 void* cmd, GLuint _program, GLsizei _bufsize, uint32 _length_shm_id, | 3474 static_cast<ValueType*>(cmd)->Init(_program, _bucket_id); |
3480 uint32 _length_shm_offset, uint32 _infolog_shm_id, | |
3481 uint32 _infolog_shm_offset) { | |
3482 static_cast<ValueType*>( | |
3483 cmd)->Init( | |
3484 _program, _bufsize, _length_shm_id, _length_shm_offset, | |
3485 _infolog_shm_id, _infolog_shm_offset); | |
3486 return NextCmdAddress<ValueType>(cmd); | 3475 return NextCmdAddress<ValueType>(cmd); |
3487 } | 3476 } |
3488 | 3477 |
3489 gpu::CommandHeader header; | 3478 gpu::CommandHeader header; |
3490 uint32 program; | 3479 uint32 program; |
3491 int32 bufsize; | 3480 uint32 bucket_id; |
3492 uint32 length_shm_id; | |
3493 uint32 length_shm_offset; | |
3494 uint32 infolog_shm_id; | |
3495 uint32 infolog_shm_offset; | |
3496 }; | 3481 }; |
3497 | 3482 |
3498 COMPILE_ASSERT(sizeof(GetProgramInfoLog) == 28, | 3483 COMPILE_ASSERT(sizeof(GetProgramInfoLog) == 12, |
3499 Sizeof_GetProgramInfoLog_is_not_28); | 3484 Sizeof_GetProgramInfoLog_is_not_12); |
3500 COMPILE_ASSERT(offsetof(GetProgramInfoLog, header) == 0, | 3485 COMPILE_ASSERT(offsetof(GetProgramInfoLog, header) == 0, |
3501 OffsetOf_GetProgramInfoLog_header_not_0); | 3486 OffsetOf_GetProgramInfoLog_header_not_0); |
3502 COMPILE_ASSERT(offsetof(GetProgramInfoLog, program) == 4, | 3487 COMPILE_ASSERT(offsetof(GetProgramInfoLog, program) == 4, |
3503 OffsetOf_GetProgramInfoLog_program_not_4); | 3488 OffsetOf_GetProgramInfoLog_program_not_4); |
3504 COMPILE_ASSERT(offsetof(GetProgramInfoLog, bufsize) == 8, | 3489 COMPILE_ASSERT(offsetof(GetProgramInfoLog, bucket_id) == 8, |
3505 OffsetOf_GetProgramInfoLog_bufsize_not_8); | 3490 OffsetOf_GetProgramInfoLog_bucket_id_not_8); |
3506 COMPILE_ASSERT(offsetof(GetProgramInfoLog, length_shm_id) == 12, | |
3507 OffsetOf_GetProgramInfoLog_length_shm_id_not_12); | |
3508 COMPILE_ASSERT(offsetof(GetProgramInfoLog, length_shm_offset) == 16, | |
3509 OffsetOf_GetProgramInfoLog_length_shm_offset_not_16); | |
3510 COMPILE_ASSERT(offsetof(GetProgramInfoLog, infolog_shm_id) == 20, | |
3511 OffsetOf_GetProgramInfoLog_infolog_shm_id_not_20); | |
3512 COMPILE_ASSERT(offsetof(GetProgramInfoLog, infolog_shm_offset) == 24, | |
3513 OffsetOf_GetProgramInfoLog_infolog_shm_offset_not_24); | |
3514 | 3491 |
3515 struct GetRenderbufferParameteriv { | 3492 struct GetRenderbufferParameteriv { |
3516 typedef GetRenderbufferParameteriv ValueType; | 3493 typedef GetRenderbufferParameteriv ValueType; |
3517 static const CommandId kCmdId = kGetRenderbufferParameteriv; | 3494 static const CommandId kCmdId = kGetRenderbufferParameteriv; |
3518 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3495 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3519 | 3496 |
3520 static uint32 ComputeSize() { | 3497 static uint32 ComputeSize() { |
3521 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 3498 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
3522 } | 3499 } |
3523 | 3500 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3620 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3597 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3621 | 3598 |
3622 static uint32 ComputeSize() { | 3599 static uint32 ComputeSize() { |
3623 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 3600 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
3624 } | 3601 } |
3625 | 3602 |
3626 void SetHeader() { | 3603 void SetHeader() { |
3627 header.SetCmd<ValueType>(); | 3604 header.SetCmd<ValueType>(); |
3628 } | 3605 } |
3629 | 3606 |
3630 void Init( | 3607 void Init(GLuint _shader, uint32 _bucket_id) { |
3631 GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, | |
3632 uint32 _length_shm_offset, uint32 _infolog_shm_id, | |
3633 uint32 _infolog_shm_offset) { | |
3634 SetHeader(); | 3608 SetHeader(); |
3635 shader = _shader; | 3609 shader = _shader; |
3636 bufsize = _bufsize; | 3610 bucket_id = _bucket_id; |
3637 length_shm_id = _length_shm_id; | |
3638 length_shm_offset = _length_shm_offset; | |
3639 infolog_shm_id = _infolog_shm_id; | |
3640 infolog_shm_offset = _infolog_shm_offset; | |
3641 } | 3611 } |
3642 | 3612 |
3643 void* Set( | 3613 void* Set(void* cmd, GLuint _shader, uint32 _bucket_id) { |
3644 void* cmd, GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, | 3614 static_cast<ValueType*>(cmd)->Init(_shader, _bucket_id); |
3645 uint32 _length_shm_offset, uint32 _infolog_shm_id, | |
3646 uint32 _infolog_shm_offset) { | |
3647 static_cast<ValueType*>( | |
3648 cmd)->Init( | |
3649 _shader, _bufsize, _length_shm_id, _length_shm_offset, | |
3650 _infolog_shm_id, _infolog_shm_offset); | |
3651 return NextCmdAddress<ValueType>(cmd); | 3615 return NextCmdAddress<ValueType>(cmd); |
3652 } | 3616 } |
3653 | 3617 |
3654 gpu::CommandHeader header; | 3618 gpu::CommandHeader header; |
3655 uint32 shader; | 3619 uint32 shader; |
3656 int32 bufsize; | 3620 uint32 bucket_id; |
3657 uint32 length_shm_id; | |
3658 uint32 length_shm_offset; | |
3659 uint32 infolog_shm_id; | |
3660 uint32 infolog_shm_offset; | |
3661 }; | 3621 }; |
3662 | 3622 |
3663 COMPILE_ASSERT(sizeof(GetShaderInfoLog) == 28, | 3623 COMPILE_ASSERT(sizeof(GetShaderInfoLog) == 12, |
3664 Sizeof_GetShaderInfoLog_is_not_28); | 3624 Sizeof_GetShaderInfoLog_is_not_12); |
3665 COMPILE_ASSERT(offsetof(GetShaderInfoLog, header) == 0, | 3625 COMPILE_ASSERT(offsetof(GetShaderInfoLog, header) == 0, |
3666 OffsetOf_GetShaderInfoLog_header_not_0); | 3626 OffsetOf_GetShaderInfoLog_header_not_0); |
3667 COMPILE_ASSERT(offsetof(GetShaderInfoLog, shader) == 4, | 3627 COMPILE_ASSERT(offsetof(GetShaderInfoLog, shader) == 4, |
3668 OffsetOf_GetShaderInfoLog_shader_not_4); | 3628 OffsetOf_GetShaderInfoLog_shader_not_4); |
3669 COMPILE_ASSERT(offsetof(GetShaderInfoLog, bufsize) == 8, | 3629 COMPILE_ASSERT(offsetof(GetShaderInfoLog, bucket_id) == 8, |
3670 OffsetOf_GetShaderInfoLog_bufsize_not_8); | 3630 OffsetOf_GetShaderInfoLog_bucket_id_not_8); |
3671 COMPILE_ASSERT(offsetof(GetShaderInfoLog, length_shm_id) == 12, | |
3672 OffsetOf_GetShaderInfoLog_length_shm_id_not_12); | |
3673 COMPILE_ASSERT(offsetof(GetShaderInfoLog, length_shm_offset) == 16, | |
3674 OffsetOf_GetShaderInfoLog_length_shm_offset_not_16); | |
3675 COMPILE_ASSERT(offsetof(GetShaderInfoLog, infolog_shm_id) == 20, | |
3676 OffsetOf_GetShaderInfoLog_infolog_shm_id_not_20); | |
3677 COMPILE_ASSERT(offsetof(GetShaderInfoLog, infolog_shm_offset) == 24, | |
3678 OffsetOf_GetShaderInfoLog_infolog_shm_offset_not_24); | |
3679 | 3631 |
3680 struct GetShaderPrecisionFormat { | 3632 struct GetShaderPrecisionFormat { |
3681 typedef GetShaderPrecisionFormat ValueType; | 3633 typedef GetShaderPrecisionFormat ValueType; |
3682 static const CommandId kCmdId = kGetShaderPrecisionFormat; | 3634 static const CommandId kCmdId = kGetShaderPrecisionFormat; |
3683 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3635 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3684 | 3636 |
3685 struct Result { | 3637 struct Result { |
3686 int32 success; | 3638 int32 success; |
3687 int32 min_range; | 3639 int32 min_range; |
3688 int32 max_range; | 3640 int32 max_range; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3750 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3702 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3751 | 3703 |
3752 static uint32 ComputeSize() { | 3704 static uint32 ComputeSize() { |
3753 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 3705 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
3754 } | 3706 } |
3755 | 3707 |
3756 void SetHeader() { | 3708 void SetHeader() { |
3757 header.SetCmd<ValueType>(); | 3709 header.SetCmd<ValueType>(); |
3758 } | 3710 } |
3759 | 3711 |
3760 void Init( | 3712 void Init(GLuint _shader, uint32 _bucket_id) { |
3761 GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, | |
3762 uint32 _length_shm_offset, uint32 _source_shm_id, | |
3763 uint32 _source_shm_offset) { | |
3764 SetHeader(); | 3713 SetHeader(); |
3765 shader = _shader; | 3714 shader = _shader; |
3766 bufsize = _bufsize; | 3715 bucket_id = _bucket_id; |
3767 length_shm_id = _length_shm_id; | |
3768 length_shm_offset = _length_shm_offset; | |
3769 source_shm_id = _source_shm_id; | |
3770 source_shm_offset = _source_shm_offset; | |
3771 } | 3716 } |
3772 | 3717 |
3773 void* Set( | 3718 void* Set(void* cmd, GLuint _shader, uint32 _bucket_id) { |
3774 void* cmd, GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, | 3719 static_cast<ValueType*>(cmd)->Init(_shader, _bucket_id); |
3775 uint32 _length_shm_offset, uint32 _source_shm_id, | |
3776 uint32 _source_shm_offset) { | |
3777 static_cast<ValueType*>( | |
3778 cmd)->Init( | |
3779 _shader, _bufsize, _length_shm_id, _length_shm_offset, | |
3780 _source_shm_id, _source_shm_offset); | |
3781 return NextCmdAddress<ValueType>(cmd); | 3720 return NextCmdAddress<ValueType>(cmd); |
3782 } | 3721 } |
3783 | 3722 |
3784 gpu::CommandHeader header; | 3723 gpu::CommandHeader header; |
3785 uint32 shader; | 3724 uint32 shader; |
3786 int32 bufsize; | 3725 uint32 bucket_id; |
3787 uint32 length_shm_id; | |
3788 uint32 length_shm_offset; | |
3789 uint32 source_shm_id; | |
3790 uint32 source_shm_offset; | |
3791 }; | 3726 }; |
3792 | 3727 |
3793 COMPILE_ASSERT(sizeof(GetShaderSource) == 28, | 3728 COMPILE_ASSERT(sizeof(GetShaderSource) == 12, |
3794 Sizeof_GetShaderSource_is_not_28); | 3729 Sizeof_GetShaderSource_is_not_12); |
3795 COMPILE_ASSERT(offsetof(GetShaderSource, header) == 0, | 3730 COMPILE_ASSERT(offsetof(GetShaderSource, header) == 0, |
3796 OffsetOf_GetShaderSource_header_not_0); | 3731 OffsetOf_GetShaderSource_header_not_0); |
3797 COMPILE_ASSERT(offsetof(GetShaderSource, shader) == 4, | 3732 COMPILE_ASSERT(offsetof(GetShaderSource, shader) == 4, |
3798 OffsetOf_GetShaderSource_shader_not_4); | 3733 OffsetOf_GetShaderSource_shader_not_4); |
3799 COMPILE_ASSERT(offsetof(GetShaderSource, bufsize) == 8, | 3734 COMPILE_ASSERT(offsetof(GetShaderSource, bucket_id) == 8, |
3800 OffsetOf_GetShaderSource_bufsize_not_8); | 3735 OffsetOf_GetShaderSource_bucket_id_not_8); |
3801 COMPILE_ASSERT(offsetof(GetShaderSource, length_shm_id) == 12, | |
3802 OffsetOf_GetShaderSource_length_shm_id_not_12); | |
3803 COMPILE_ASSERT(offsetof(GetShaderSource, length_shm_offset) == 16, | |
3804 OffsetOf_GetShaderSource_length_shm_offset_not_16); | |
3805 COMPILE_ASSERT(offsetof(GetShaderSource, source_shm_id) == 20, | |
3806 OffsetOf_GetShaderSource_source_shm_id_not_20); | |
3807 COMPILE_ASSERT(offsetof(GetShaderSource, source_shm_offset) == 24, | |
3808 OffsetOf_GetShaderSource_source_shm_offset_not_24); | |
3809 | 3736 |
3810 struct GetString { | 3737 struct GetString { |
3811 typedef GetString ValueType; | 3738 typedef GetString ValueType; |
3812 static const CommandId kCmdId = kGetString; | 3739 static const CommandId kCmdId = kGetString; |
3813 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3740 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3814 | 3741 |
3815 static uint32 ComputeSize() { | 3742 static uint32 ComputeSize() { |
3816 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 3743 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
3817 } | 3744 } |
3818 | 3745 |
3819 void SetHeader() { | 3746 void SetHeader() { |
3820 header.SetCmd<ValueType>(); | 3747 header.SetCmd<ValueType>(); |
3821 } | 3748 } |
3822 | 3749 |
3823 void Init(GLenum _name) { | 3750 void Init(GLenum _name, uint32 _bucket_id) { |
3824 SetHeader(); | 3751 SetHeader(); |
3825 name = _name; | 3752 name = _name; |
| 3753 bucket_id = _bucket_id; |
3826 } | 3754 } |
3827 | 3755 |
3828 void* Set(void* cmd, GLenum _name) { | 3756 void* Set(void* cmd, GLenum _name, uint32 _bucket_id) { |
3829 static_cast<ValueType*>(cmd)->Init(_name); | 3757 static_cast<ValueType*>(cmd)->Init(_name, _bucket_id); |
3830 return NextCmdAddress<ValueType>(cmd); | 3758 return NextCmdAddress<ValueType>(cmd); |
3831 } | 3759 } |
3832 | 3760 |
3833 gpu::CommandHeader header; | 3761 gpu::CommandHeader header; |
3834 uint32 name; | 3762 uint32 name; |
| 3763 uint32 bucket_id; |
3835 }; | 3764 }; |
3836 | 3765 |
3837 COMPILE_ASSERT(sizeof(GetString) == 8, | 3766 COMPILE_ASSERT(sizeof(GetString) == 12, |
3838 Sizeof_GetString_is_not_8); | 3767 Sizeof_GetString_is_not_12); |
3839 COMPILE_ASSERT(offsetof(GetString, header) == 0, | 3768 COMPILE_ASSERT(offsetof(GetString, header) == 0, |
3840 OffsetOf_GetString_header_not_0); | 3769 OffsetOf_GetString_header_not_0); |
3841 COMPILE_ASSERT(offsetof(GetString, name) == 4, | 3770 COMPILE_ASSERT(offsetof(GetString, name) == 4, |
3842 OffsetOf_GetString_name_not_4); | 3771 OffsetOf_GetString_name_not_4); |
| 3772 COMPILE_ASSERT(offsetof(GetString, bucket_id) == 8, |
| 3773 OffsetOf_GetString_bucket_id_not_8); |
3843 | 3774 |
3844 struct GetTexParameterfv { | 3775 struct GetTexParameterfv { |
3845 typedef GetTexParameterfv ValueType; | 3776 typedef GetTexParameterfv ValueType; |
3846 static const CommandId kCmdId = kGetTexParameterfv; | 3777 static const CommandId kCmdId = kGetTexParameterfv; |
3847 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3778 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3848 | 3779 |
3849 static uint32 ComputeSize() { | 3780 static uint32 ComputeSize() { |
3850 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 3781 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
3851 } | 3782 } |
3852 | 3783 |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4240 COMPILE_ASSERT(offsetof(Hint, target) == 4, | 4171 COMPILE_ASSERT(offsetof(Hint, target) == 4, |
4241 OffsetOf_Hint_target_not_4); | 4172 OffsetOf_Hint_target_not_4); |
4242 COMPILE_ASSERT(offsetof(Hint, mode) == 8, | 4173 COMPILE_ASSERT(offsetof(Hint, mode) == 8, |
4243 OffsetOf_Hint_mode_not_8); | 4174 OffsetOf_Hint_mode_not_8); |
4244 | 4175 |
4245 struct IsBuffer { | 4176 struct IsBuffer { |
4246 typedef IsBuffer ValueType; | 4177 typedef IsBuffer ValueType; |
4247 static const CommandId kCmdId = kIsBuffer; | 4178 static const CommandId kCmdId = kIsBuffer; |
4248 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4179 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4249 | 4180 |
| 4181 typedef uint32 Result; |
| 4182 |
4250 static uint32 ComputeSize() { | 4183 static uint32 ComputeSize() { |
4251 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4184 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
4252 } | 4185 } |
4253 | 4186 |
4254 void SetHeader() { | 4187 void SetHeader() { |
4255 header.SetCmd<ValueType>(); | 4188 header.SetCmd<ValueType>(); |
4256 } | 4189 } |
4257 | 4190 |
4258 void Init(GLuint _buffer, uint32 _result_shm_id, uint32 _result_shm_offset) { | 4191 void Init(GLuint _buffer, uint32 _result_shm_id, uint32 _result_shm_offset) { |
4259 SetHeader(); | 4192 SetHeader(); |
(...skipping 25 matching lines...) Expand all Loading... |
4285 COMPILE_ASSERT(offsetof(IsBuffer, result_shm_id) == 8, | 4218 COMPILE_ASSERT(offsetof(IsBuffer, result_shm_id) == 8, |
4286 OffsetOf_IsBuffer_result_shm_id_not_8); | 4219 OffsetOf_IsBuffer_result_shm_id_not_8); |
4287 COMPILE_ASSERT(offsetof(IsBuffer, result_shm_offset) == 12, | 4220 COMPILE_ASSERT(offsetof(IsBuffer, result_shm_offset) == 12, |
4288 OffsetOf_IsBuffer_result_shm_offset_not_12); | 4221 OffsetOf_IsBuffer_result_shm_offset_not_12); |
4289 | 4222 |
4290 struct IsEnabled { | 4223 struct IsEnabled { |
4291 typedef IsEnabled ValueType; | 4224 typedef IsEnabled ValueType; |
4292 static const CommandId kCmdId = kIsEnabled; | 4225 static const CommandId kCmdId = kIsEnabled; |
4293 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4226 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4294 | 4227 |
| 4228 typedef uint32 Result; |
| 4229 |
4295 static uint32 ComputeSize() { | 4230 static uint32 ComputeSize() { |
4296 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4231 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
4297 } | 4232 } |
4298 | 4233 |
4299 void SetHeader() { | 4234 void SetHeader() { |
4300 header.SetCmd<ValueType>(); | 4235 header.SetCmd<ValueType>(); |
4301 } | 4236 } |
4302 | 4237 |
4303 void Init(GLenum _cap, uint32 _result_shm_id, uint32 _result_shm_offset) { | 4238 void Init(GLenum _cap, uint32 _result_shm_id, uint32 _result_shm_offset) { |
4304 SetHeader(); | 4239 SetHeader(); |
(...skipping 25 matching lines...) Expand all Loading... |
4330 COMPILE_ASSERT(offsetof(IsEnabled, result_shm_id) == 8, | 4265 COMPILE_ASSERT(offsetof(IsEnabled, result_shm_id) == 8, |
4331 OffsetOf_IsEnabled_result_shm_id_not_8); | 4266 OffsetOf_IsEnabled_result_shm_id_not_8); |
4332 COMPILE_ASSERT(offsetof(IsEnabled, result_shm_offset) == 12, | 4267 COMPILE_ASSERT(offsetof(IsEnabled, result_shm_offset) == 12, |
4333 OffsetOf_IsEnabled_result_shm_offset_not_12); | 4268 OffsetOf_IsEnabled_result_shm_offset_not_12); |
4334 | 4269 |
4335 struct IsFramebuffer { | 4270 struct IsFramebuffer { |
4336 typedef IsFramebuffer ValueType; | 4271 typedef IsFramebuffer ValueType; |
4337 static const CommandId kCmdId = kIsFramebuffer; | 4272 static const CommandId kCmdId = kIsFramebuffer; |
4338 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4273 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4339 | 4274 |
| 4275 typedef uint32 Result; |
| 4276 |
4340 static uint32 ComputeSize() { | 4277 static uint32 ComputeSize() { |
4341 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4278 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
4342 } | 4279 } |
4343 | 4280 |
4344 void SetHeader() { | 4281 void SetHeader() { |
4345 header.SetCmd<ValueType>(); | 4282 header.SetCmd<ValueType>(); |
4346 } | 4283 } |
4347 | 4284 |
4348 void Init( | 4285 void Init( |
4349 GLuint _framebuffer, uint32 _result_shm_id, uint32 _result_shm_offset) { | 4286 GLuint _framebuffer, uint32 _result_shm_id, uint32 _result_shm_offset) { |
(...skipping 26 matching lines...) Expand all Loading... |
4376 COMPILE_ASSERT(offsetof(IsFramebuffer, result_shm_id) == 8, | 4313 COMPILE_ASSERT(offsetof(IsFramebuffer, result_shm_id) == 8, |
4377 OffsetOf_IsFramebuffer_result_shm_id_not_8); | 4314 OffsetOf_IsFramebuffer_result_shm_id_not_8); |
4378 COMPILE_ASSERT(offsetof(IsFramebuffer, result_shm_offset) == 12, | 4315 COMPILE_ASSERT(offsetof(IsFramebuffer, result_shm_offset) == 12, |
4379 OffsetOf_IsFramebuffer_result_shm_offset_not_12); | 4316 OffsetOf_IsFramebuffer_result_shm_offset_not_12); |
4380 | 4317 |
4381 struct IsProgram { | 4318 struct IsProgram { |
4382 typedef IsProgram ValueType; | 4319 typedef IsProgram ValueType; |
4383 static const CommandId kCmdId = kIsProgram; | 4320 static const CommandId kCmdId = kIsProgram; |
4384 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4321 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4385 | 4322 |
| 4323 typedef uint32 Result; |
| 4324 |
4386 static uint32 ComputeSize() { | 4325 static uint32 ComputeSize() { |
4387 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4326 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
4388 } | 4327 } |
4389 | 4328 |
4390 void SetHeader() { | 4329 void SetHeader() { |
4391 header.SetCmd<ValueType>(); | 4330 header.SetCmd<ValueType>(); |
4392 } | 4331 } |
4393 | 4332 |
4394 void Init( | 4333 void Init( |
4395 GLuint _program, uint32 _result_shm_id, uint32 _result_shm_offset) { | 4334 GLuint _program, uint32 _result_shm_id, uint32 _result_shm_offset) { |
(...skipping 26 matching lines...) Expand all Loading... |
4422 COMPILE_ASSERT(offsetof(IsProgram, result_shm_id) == 8, | 4361 COMPILE_ASSERT(offsetof(IsProgram, result_shm_id) == 8, |
4423 OffsetOf_IsProgram_result_shm_id_not_8); | 4362 OffsetOf_IsProgram_result_shm_id_not_8); |
4424 COMPILE_ASSERT(offsetof(IsProgram, result_shm_offset) == 12, | 4363 COMPILE_ASSERT(offsetof(IsProgram, result_shm_offset) == 12, |
4425 OffsetOf_IsProgram_result_shm_offset_not_12); | 4364 OffsetOf_IsProgram_result_shm_offset_not_12); |
4426 | 4365 |
4427 struct IsRenderbuffer { | 4366 struct IsRenderbuffer { |
4428 typedef IsRenderbuffer ValueType; | 4367 typedef IsRenderbuffer ValueType; |
4429 static const CommandId kCmdId = kIsRenderbuffer; | 4368 static const CommandId kCmdId = kIsRenderbuffer; |
4430 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4369 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4431 | 4370 |
| 4371 typedef uint32 Result; |
| 4372 |
4432 static uint32 ComputeSize() { | 4373 static uint32 ComputeSize() { |
4433 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4374 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
4434 } | 4375 } |
4435 | 4376 |
4436 void SetHeader() { | 4377 void SetHeader() { |
4437 header.SetCmd<ValueType>(); | 4378 header.SetCmd<ValueType>(); |
4438 } | 4379 } |
4439 | 4380 |
4440 void Init( | 4381 void Init( |
4441 GLuint _renderbuffer, uint32 _result_shm_id, uint32 _result_shm_offset) { | 4382 GLuint _renderbuffer, uint32 _result_shm_id, uint32 _result_shm_offset) { |
(...skipping 26 matching lines...) Expand all Loading... |
4468 COMPILE_ASSERT(offsetof(IsRenderbuffer, result_shm_id) == 8, | 4409 COMPILE_ASSERT(offsetof(IsRenderbuffer, result_shm_id) == 8, |
4469 OffsetOf_IsRenderbuffer_result_shm_id_not_8); | 4410 OffsetOf_IsRenderbuffer_result_shm_id_not_8); |
4470 COMPILE_ASSERT(offsetof(IsRenderbuffer, result_shm_offset) == 12, | 4411 COMPILE_ASSERT(offsetof(IsRenderbuffer, result_shm_offset) == 12, |
4471 OffsetOf_IsRenderbuffer_result_shm_offset_not_12); | 4412 OffsetOf_IsRenderbuffer_result_shm_offset_not_12); |
4472 | 4413 |
4473 struct IsShader { | 4414 struct IsShader { |
4474 typedef IsShader ValueType; | 4415 typedef IsShader ValueType; |
4475 static const CommandId kCmdId = kIsShader; | 4416 static const CommandId kCmdId = kIsShader; |
4476 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4417 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4477 | 4418 |
| 4419 typedef uint32 Result; |
| 4420 |
4478 static uint32 ComputeSize() { | 4421 static uint32 ComputeSize() { |
4479 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4422 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
4480 } | 4423 } |
4481 | 4424 |
4482 void SetHeader() { | 4425 void SetHeader() { |
4483 header.SetCmd<ValueType>(); | 4426 header.SetCmd<ValueType>(); |
4484 } | 4427 } |
4485 | 4428 |
4486 void Init(GLuint _shader, uint32 _result_shm_id, uint32 _result_shm_offset) { | 4429 void Init(GLuint _shader, uint32 _result_shm_id, uint32 _result_shm_offset) { |
4487 SetHeader(); | 4430 SetHeader(); |
(...skipping 25 matching lines...) Expand all Loading... |
4513 COMPILE_ASSERT(offsetof(IsShader, result_shm_id) == 8, | 4456 COMPILE_ASSERT(offsetof(IsShader, result_shm_id) == 8, |
4514 OffsetOf_IsShader_result_shm_id_not_8); | 4457 OffsetOf_IsShader_result_shm_id_not_8); |
4515 COMPILE_ASSERT(offsetof(IsShader, result_shm_offset) == 12, | 4458 COMPILE_ASSERT(offsetof(IsShader, result_shm_offset) == 12, |
4516 OffsetOf_IsShader_result_shm_offset_not_12); | 4459 OffsetOf_IsShader_result_shm_offset_not_12); |
4517 | 4460 |
4518 struct IsTexture { | 4461 struct IsTexture { |
4519 typedef IsTexture ValueType; | 4462 typedef IsTexture ValueType; |
4520 static const CommandId kCmdId = kIsTexture; | 4463 static const CommandId kCmdId = kIsTexture; |
4521 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4464 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4522 | 4465 |
| 4466 typedef uint32 Result; |
| 4467 |
4523 static uint32 ComputeSize() { | 4468 static uint32 ComputeSize() { |
4524 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4469 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
4525 } | 4470 } |
4526 | 4471 |
4527 void SetHeader() { | 4472 void SetHeader() { |
4528 header.SetCmd<ValueType>(); | 4473 header.SetCmd<ValueType>(); |
4529 } | 4474 } |
4530 | 4475 |
4531 void Init( | 4476 void Init( |
4532 GLuint _texture, uint32 _result_shm_id, uint32 _result_shm_offset) { | 4477 GLuint _texture, uint32 _result_shm_id, uint32 _result_shm_offset) { |
(...skipping 3520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8053 }; | 7998 }; |
8054 | 7999 |
8055 COMPILE_ASSERT(sizeof(SwapBuffers) == 4, | 8000 COMPILE_ASSERT(sizeof(SwapBuffers) == 4, |
8056 Sizeof_SwapBuffers_is_not_4); | 8001 Sizeof_SwapBuffers_is_not_4); |
8057 COMPILE_ASSERT(offsetof(SwapBuffers, header) == 0, | 8002 COMPILE_ASSERT(offsetof(SwapBuffers, header) == 0, |
8058 OffsetOf_SwapBuffers_header_not_0); | 8003 OffsetOf_SwapBuffers_header_not_0); |
8059 | 8004 |
8060 | 8005 |
8061 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 8006 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
8062 | 8007 |
OLD | NEW |