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