| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 from | 5 // This file is auto-generated from |
| 6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 13739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13750 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 28"); | 13750 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 28"); |
| 13751 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, | 13751 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, |
| 13752 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 32"); | 13752 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 32"); |
| 13753 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, | 13753 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, |
| 13754 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36"); | 13754 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36"); |
| 13755 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, | 13755 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, |
| 13756 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40"); | 13756 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40"); |
| 13757 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, | 13757 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, |
| 13758 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44"); | 13758 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44"); |
| 13759 | 13759 |
| 13760 struct ScheduleSolidColorOverlayPlaneCHROMIUM { |
| 13761 typedef ScheduleSolidColorOverlayPlaneCHROMIUM ValueType; |
| 13762 static const CommandId kCmdId = kScheduleSolidColorOverlayPlaneCHROMIUM; |
| 13763 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13764 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13765 |
| 13766 static uint32_t ComputeSize() { |
| 13767 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13768 } |
| 13769 |
| 13770 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13771 |
| 13772 void Init(GLint _plane_z_order, |
| 13773 GLint _bounds_x, |
| 13774 GLint _bounds_y, |
| 13775 GLint _bounds_width, |
| 13776 GLint _bounds_height, |
| 13777 GLclampf _red, |
| 13778 GLclampf _green, |
| 13779 GLclampf _blue, |
| 13780 GLclampf _alpha) { |
| 13781 SetHeader(); |
| 13782 plane_z_order = _plane_z_order; |
| 13783 bounds_x = _bounds_x; |
| 13784 bounds_y = _bounds_y; |
| 13785 bounds_width = _bounds_width; |
| 13786 bounds_height = _bounds_height; |
| 13787 red = _red; |
| 13788 green = _green; |
| 13789 blue = _blue; |
| 13790 alpha = _alpha; |
| 13791 } |
| 13792 |
| 13793 void* Set(void* cmd, |
| 13794 GLint _plane_z_order, |
| 13795 GLint _bounds_x, |
| 13796 GLint _bounds_y, |
| 13797 GLint _bounds_width, |
| 13798 GLint _bounds_height, |
| 13799 GLclampf _red, |
| 13800 GLclampf _green, |
| 13801 GLclampf _blue, |
| 13802 GLclampf _alpha) { |
| 13803 static_cast<ValueType*>(cmd)->Init(_plane_z_order, _bounds_x, _bounds_y, |
| 13804 _bounds_width, _bounds_height, _red, |
| 13805 _green, _blue, _alpha); |
| 13806 return NextCmdAddress<ValueType>(cmd); |
| 13807 } |
| 13808 |
| 13809 gpu::CommandHeader header; |
| 13810 int32_t plane_z_order; |
| 13811 int32_t bounds_x; |
| 13812 int32_t bounds_y; |
| 13813 int32_t bounds_width; |
| 13814 int32_t bounds_height; |
| 13815 float red; |
| 13816 float green; |
| 13817 float blue; |
| 13818 float alpha; |
| 13819 }; |
| 13820 |
| 13821 static_assert(sizeof(ScheduleSolidColorOverlayPlaneCHROMIUM) == 40, |
| 13822 "size of ScheduleSolidColorOverlayPlaneCHROMIUM should be 40"); |
| 13823 static_assert( |
| 13824 offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, header) == 0, |
| 13825 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM header should be 0"); |
| 13826 static_assert(offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, plane_z_order) == |
| 13827 4, |
| 13828 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM plane_z_order " |
| 13829 "should be 4"); |
| 13830 static_assert( |
| 13831 offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, bounds_x) == 8, |
| 13832 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM bounds_x should be 8"); |
| 13833 static_assert( |
| 13834 offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, bounds_y) == 12, |
| 13835 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM bounds_y should be 12"); |
| 13836 static_assert(offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, bounds_width) == |
| 13837 16, |
| 13838 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM bounds_width " |
| 13839 "should be 16"); |
| 13840 static_assert(offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, bounds_height) == |
| 13841 20, |
| 13842 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM bounds_height " |
| 13843 "should be 20"); |
| 13844 static_assert( |
| 13845 offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, red) == 24, |
| 13846 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM red should be 24"); |
| 13847 static_assert( |
| 13848 offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, green) == 28, |
| 13849 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM green should be 28"); |
| 13850 static_assert( |
| 13851 offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, blue) == 32, |
| 13852 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM blue should be 32"); |
| 13853 static_assert( |
| 13854 offsetof(ScheduleSolidColorOverlayPlaneCHROMIUM, alpha) == 36, |
| 13855 "offset of ScheduleSolidColorOverlayPlaneCHROMIUM alpha should be 36"); |
| 13856 |
| 13760 struct SwapInterval { | 13857 struct SwapInterval { |
| 13761 typedef SwapInterval ValueType; | 13858 typedef SwapInterval ValueType; |
| 13762 static const CommandId kCmdId = kSwapInterval; | 13859 static const CommandId kCmdId = kSwapInterval; |
| 13763 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13860 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13764 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 13861 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 13765 | 13862 |
| 13766 static uint32_t ComputeSize() { | 13863 static uint32_t ComputeSize() { |
| 13767 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13864 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13768 } | 13865 } |
| 13769 | 13866 |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14521 gpu::CommandHeader header; | 14618 gpu::CommandHeader header; |
| 14522 }; | 14619 }; |
| 14523 | 14620 |
| 14524 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, | 14621 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, |
| 14525 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); | 14622 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); |
| 14526 static_assert( | 14623 static_assert( |
| 14527 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, | 14624 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, |
| 14528 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); | 14625 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); |
| 14529 | 14626 |
| 14530 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 14627 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |