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 10643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10654 } | 10654 } |
10655 | 10655 |
10656 gpu::CommandHeader header; | 10656 gpu::CommandHeader header; |
10657 }; | 10657 }; |
10658 | 10658 |
10659 COMPILE_ASSERT(sizeof(DiscardBackbufferCHROMIUM) == 4, | 10659 COMPILE_ASSERT(sizeof(DiscardBackbufferCHROMIUM) == 4, |
10660 Sizeof_DiscardBackbufferCHROMIUM_is_not_4); | 10660 Sizeof_DiscardBackbufferCHROMIUM_is_not_4); |
10661 COMPILE_ASSERT(offsetof(DiscardBackbufferCHROMIUM, header) == 0, | 10661 COMPILE_ASSERT(offsetof(DiscardBackbufferCHROMIUM, header) == 0, |
10662 OffsetOf_DiscardBackbufferCHROMIUM_header_not_0); | 10662 OffsetOf_DiscardBackbufferCHROMIUM_header_not_0); |
10663 | 10663 |
| 10664 struct ScheduleOverlayPlaneCHROMIUM { |
| 10665 typedef ScheduleOverlayPlaneCHROMIUM ValueType; |
| 10666 static const CommandId kCmdId = kScheduleOverlayPlaneCHROMIUM; |
| 10667 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10668 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10669 |
| 10670 static uint32 ComputeSize() { |
| 10671 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 10672 } |
| 10673 |
| 10674 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10675 |
| 10676 void Init(GLint _plane_z_order, |
| 10677 GLenum _plane_transform, |
| 10678 GLuint _overlay_texture_id, |
| 10679 GLint _bounds_x, |
| 10680 GLint _bounds_y, |
| 10681 GLint _bounds_width, |
| 10682 GLint _bounds_height, |
| 10683 GLfloat _uv_x, |
| 10684 GLfloat _uv_y, |
| 10685 GLfloat _uv_width, |
| 10686 GLfloat _uv_height) { |
| 10687 SetHeader(); |
| 10688 plane_z_order = _plane_z_order; |
| 10689 plane_transform = _plane_transform; |
| 10690 overlay_texture_id = _overlay_texture_id; |
| 10691 bounds_x = _bounds_x; |
| 10692 bounds_y = _bounds_y; |
| 10693 bounds_width = _bounds_width; |
| 10694 bounds_height = _bounds_height; |
| 10695 uv_x = _uv_x; |
| 10696 uv_y = _uv_y; |
| 10697 uv_width = _uv_width; |
| 10698 uv_height = _uv_height; |
| 10699 } |
| 10700 |
| 10701 void* Set(void* cmd, |
| 10702 GLint _plane_z_order, |
| 10703 GLenum _plane_transform, |
| 10704 GLuint _overlay_texture_id, |
| 10705 GLint _bounds_x, |
| 10706 GLint _bounds_y, |
| 10707 GLint _bounds_width, |
| 10708 GLint _bounds_height, |
| 10709 GLfloat _uv_x, |
| 10710 GLfloat _uv_y, |
| 10711 GLfloat _uv_width, |
| 10712 GLfloat _uv_height) { |
| 10713 static_cast<ValueType*>(cmd)->Init(_plane_z_order, |
| 10714 _plane_transform, |
| 10715 _overlay_texture_id, |
| 10716 _bounds_x, |
| 10717 _bounds_y, |
| 10718 _bounds_width, |
| 10719 _bounds_height, |
| 10720 _uv_x, |
| 10721 _uv_y, |
| 10722 _uv_width, |
| 10723 _uv_height); |
| 10724 return NextCmdAddress<ValueType>(cmd); |
| 10725 } |
| 10726 |
| 10727 gpu::CommandHeader header; |
| 10728 int32 plane_z_order; |
| 10729 uint32 plane_transform; |
| 10730 uint32 overlay_texture_id; |
| 10731 int32 bounds_x; |
| 10732 int32 bounds_y; |
| 10733 int32 bounds_width; |
| 10734 int32 bounds_height; |
| 10735 float uv_x; |
| 10736 float uv_y; |
| 10737 float uv_width; |
| 10738 float uv_height; |
| 10739 }; |
| 10740 |
| 10741 COMPILE_ASSERT(sizeof(ScheduleOverlayPlaneCHROMIUM) == 48, |
| 10742 Sizeof_ScheduleOverlayPlaneCHROMIUM_is_not_48); |
| 10743 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, header) == 0, |
| 10744 OffsetOf_ScheduleOverlayPlaneCHROMIUM_header_not_0); |
| 10745 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, plane_z_order) == 4, |
| 10746 OffsetOf_ScheduleOverlayPlaneCHROMIUM_plane_z_order_not_4); |
| 10747 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, plane_transform) == 8, |
| 10748 OffsetOf_ScheduleOverlayPlaneCHROMIUM_plane_transform_not_8); |
| 10749 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, overlay_texture_id) == 12, |
| 10750 OffsetOf_ScheduleOverlayPlaneCHROMIUM_overlay_texture_id_not_12); |
| 10751 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_x) == 16, |
| 10752 OffsetOf_ScheduleOverlayPlaneCHROMIUM_bounds_x_not_16); |
| 10753 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_y) == 20, |
| 10754 OffsetOf_ScheduleOverlayPlaneCHROMIUM_bounds_y_not_20); |
| 10755 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_width) == 24, |
| 10756 OffsetOf_ScheduleOverlayPlaneCHROMIUM_bounds_width_not_24); |
| 10757 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_height) == 28, |
| 10758 OffsetOf_ScheduleOverlayPlaneCHROMIUM_bounds_height_not_28); |
| 10759 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, |
| 10760 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_x_not_32); |
| 10761 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, |
| 10762 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_y_not_36); |
| 10763 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, |
| 10764 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_width_not_40); |
| 10765 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, |
| 10766 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_height_not_44); |
| 10767 |
10664 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10768 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |