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 13713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13724 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13724 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
13725 | 13725 |
13726 static uint32_t ComputeSize() { | 13726 static uint32_t ComputeSize() { |
13727 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13727 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
13728 } | 13728 } |
13729 | 13729 |
13730 void SetHeader() { header.SetCmd<ValueType>(); } | 13730 void SetHeader() { header.SetCmd<ValueType>(); } |
13731 | 13731 |
13732 void Init(GLint _plane_z_order, | 13732 void Init(GLint _plane_z_order, |
13733 GLenum _plane_transform, | 13733 GLenum _plane_transform, |
| 13734 GLuint _storage_format, |
13734 GLuint _overlay_texture_id, | 13735 GLuint _overlay_texture_id, |
13735 GLint _bounds_x, | 13736 GLint _bounds_x, |
13736 GLint _bounds_y, | 13737 GLint _bounds_y, |
13737 GLint _bounds_width, | 13738 GLint _bounds_width, |
13738 GLint _bounds_height, | 13739 GLint _bounds_height, |
13739 GLfloat _uv_x, | 13740 GLfloat _uv_x, |
13740 GLfloat _uv_y, | 13741 GLfloat _uv_y, |
13741 GLfloat _uv_width, | 13742 GLfloat _uv_width, |
13742 GLfloat _uv_height) { | 13743 GLfloat _uv_height, |
| 13744 GLboolean _handle_scaling) { |
13743 SetHeader(); | 13745 SetHeader(); |
13744 plane_z_order = _plane_z_order; | 13746 plane_z_order = _plane_z_order; |
13745 plane_transform = _plane_transform; | 13747 plane_transform = _plane_transform; |
| 13748 storage_format = _storage_format; |
13746 overlay_texture_id = _overlay_texture_id; | 13749 overlay_texture_id = _overlay_texture_id; |
13747 bounds_x = _bounds_x; | 13750 bounds_x = _bounds_x; |
13748 bounds_y = _bounds_y; | 13751 bounds_y = _bounds_y; |
13749 bounds_width = _bounds_width; | 13752 bounds_width = _bounds_width; |
13750 bounds_height = _bounds_height; | 13753 bounds_height = _bounds_height; |
13751 uv_x = _uv_x; | 13754 uv_x = _uv_x; |
13752 uv_y = _uv_y; | 13755 uv_y = _uv_y; |
13753 uv_width = _uv_width; | 13756 uv_width = _uv_width; |
13754 uv_height = _uv_height; | 13757 uv_height = _uv_height; |
| 13758 handle_scaling = _handle_scaling; |
13755 } | 13759 } |
13756 | 13760 |
13757 void* Set(void* cmd, | 13761 void* Set(void* cmd, |
13758 GLint _plane_z_order, | 13762 GLint _plane_z_order, |
13759 GLenum _plane_transform, | 13763 GLenum _plane_transform, |
| 13764 GLuint _storage_format, |
13760 GLuint _overlay_texture_id, | 13765 GLuint _overlay_texture_id, |
13761 GLint _bounds_x, | 13766 GLint _bounds_x, |
13762 GLint _bounds_y, | 13767 GLint _bounds_y, |
13763 GLint _bounds_width, | 13768 GLint _bounds_width, |
13764 GLint _bounds_height, | 13769 GLint _bounds_height, |
13765 GLfloat _uv_x, | 13770 GLfloat _uv_x, |
13766 GLfloat _uv_y, | 13771 GLfloat _uv_y, |
13767 GLfloat _uv_width, | 13772 GLfloat _uv_width, |
13768 GLfloat _uv_height) { | 13773 GLfloat _uv_height, |
| 13774 GLboolean _handle_scaling) { |
13769 static_cast<ValueType*>(cmd)->Init(_plane_z_order, _plane_transform, | 13775 static_cast<ValueType*>(cmd)->Init(_plane_z_order, _plane_transform, |
13770 _overlay_texture_id, _bounds_x, | 13776 _storage_format, _overlay_texture_id, |
13771 _bounds_y, _bounds_width, _bounds_height, | 13777 _bounds_x, _bounds_y, _bounds_width, |
13772 _uv_x, _uv_y, _uv_width, _uv_height); | 13778 _bounds_height, _uv_x, _uv_y, _uv_width, |
| 13779 _uv_height, _handle_scaling); |
13773 return NextCmdAddress<ValueType>(cmd); | 13780 return NextCmdAddress<ValueType>(cmd); |
13774 } | 13781 } |
13775 | 13782 |
13776 gpu::CommandHeader header; | 13783 gpu::CommandHeader header; |
13777 int32_t plane_z_order; | 13784 int32_t plane_z_order; |
13778 uint32_t plane_transform; | 13785 uint32_t plane_transform; |
| 13786 uint32_t storage_format; |
13779 uint32_t overlay_texture_id; | 13787 uint32_t overlay_texture_id; |
13780 int32_t bounds_x; | 13788 int32_t bounds_x; |
13781 int32_t bounds_y; | 13789 int32_t bounds_y; |
13782 int32_t bounds_width; | 13790 int32_t bounds_width; |
13783 int32_t bounds_height; | 13791 int32_t bounds_height; |
13784 float uv_x; | 13792 float uv_x; |
13785 float uv_y; | 13793 float uv_y; |
13786 float uv_width; | 13794 float uv_width; |
13787 float uv_height; | 13795 float uv_height; |
| 13796 uint32_t handle_scaling; |
13788 }; | 13797 }; |
13789 | 13798 |
13790 static_assert(sizeof(ScheduleOverlayPlaneCHROMIUM) == 48, | 13799 static_assert(sizeof(ScheduleOverlayPlaneCHROMIUM) == 56, |
13791 "size of ScheduleOverlayPlaneCHROMIUM should be 48"); | 13800 "size of ScheduleOverlayPlaneCHROMIUM should be 56"); |
13792 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, header) == 0, | 13801 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, header) == 0, |
13793 "offset of ScheduleOverlayPlaneCHROMIUM header should be 0"); | 13802 "offset of ScheduleOverlayPlaneCHROMIUM header should be 0"); |
13794 static_assert( | 13803 static_assert( |
13795 offsetof(ScheduleOverlayPlaneCHROMIUM, plane_z_order) == 4, | 13804 offsetof(ScheduleOverlayPlaneCHROMIUM, plane_z_order) == 4, |
13796 "offset of ScheduleOverlayPlaneCHROMIUM plane_z_order should be 4"); | 13805 "offset of ScheduleOverlayPlaneCHROMIUM plane_z_order should be 4"); |
13797 static_assert( | 13806 static_assert( |
13798 offsetof(ScheduleOverlayPlaneCHROMIUM, plane_transform) == 8, | 13807 offsetof(ScheduleOverlayPlaneCHROMIUM, plane_transform) == 8, |
13799 "offset of ScheduleOverlayPlaneCHROMIUM plane_transform should be 8"); | 13808 "offset of ScheduleOverlayPlaneCHROMIUM plane_transform should be 8"); |
13800 static_assert( | 13809 static_assert( |
13801 offsetof(ScheduleOverlayPlaneCHROMIUM, overlay_texture_id) == 12, | 13810 offsetof(ScheduleOverlayPlaneCHROMIUM, storage_format) == 12, |
13802 "offset of ScheduleOverlayPlaneCHROMIUM overlay_texture_id should be 12"); | 13811 "offset of ScheduleOverlayPlaneCHROMIUM storage_format should be 12"); |
13803 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_x) == 16, | |
13804 "offset of ScheduleOverlayPlaneCHROMIUM bounds_x should be 16"); | |
13805 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_y) == 20, | |
13806 "offset of ScheduleOverlayPlaneCHROMIUM bounds_y should be 20"); | |
13807 static_assert( | 13812 static_assert( |
13808 offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_width) == 24, | 13813 offsetof(ScheduleOverlayPlaneCHROMIUM, overlay_texture_id) == 16, |
13809 "offset of ScheduleOverlayPlaneCHROMIUM bounds_width should be 24"); | 13814 "offset of ScheduleOverlayPlaneCHROMIUM overlay_texture_id should be 16"); |
| 13815 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_x) == 20, |
| 13816 "offset of ScheduleOverlayPlaneCHROMIUM bounds_x should be 20"); |
| 13817 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_y) == 24, |
| 13818 "offset of ScheduleOverlayPlaneCHROMIUM bounds_y should be 24"); |
13810 static_assert( | 13819 static_assert( |
13811 offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_height) == 28, | 13820 offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_width) == 28, |
13812 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 28"); | 13821 "offset of ScheduleOverlayPlaneCHROMIUM bounds_width should be 28"); |
13813 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, | 13822 static_assert( |
13814 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 32"); | 13823 offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_height) == 32, |
13815 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, | 13824 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 32"); |
13816 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36"); | 13825 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 36, |
13817 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, | 13826 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 36"); |
13818 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40"); | 13827 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 40, |
13819 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, | 13828 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 40"); |
13820 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44"); | 13829 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 44, |
| 13830 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 44"); |
| 13831 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 48, |
| 13832 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 48"); |
| 13833 static_assert( |
| 13834 offsetof(ScheduleOverlayPlaneCHROMIUM, handle_scaling) == 52, |
| 13835 "offset of ScheduleOverlayPlaneCHROMIUM handle_scaling should be 52"); |
13821 | 13836 |
13822 struct ScheduleCALayerCHROMIUM { | 13837 struct ScheduleCALayerCHROMIUM { |
13823 typedef ScheduleCALayerCHROMIUM ValueType; | 13838 typedef ScheduleCALayerCHROMIUM ValueType; |
13824 static const CommandId kCmdId = kScheduleCALayerCHROMIUM; | 13839 static const CommandId kCmdId = kScheduleCALayerCHROMIUM; |
13825 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13840 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
13826 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13841 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
13827 | 13842 |
13828 static uint32_t ComputeSize() { | 13843 static uint32_t ComputeSize() { |
13829 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13844 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
13830 } | 13845 } |
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15588 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, | 15603 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, |
15589 "offset of GetFragDataIndexEXT program should be 4"); | 15604 "offset of GetFragDataIndexEXT program should be 4"); |
15590 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, | 15605 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, |
15591 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); | 15606 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); |
15592 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, | 15607 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, |
15593 "offset of GetFragDataIndexEXT index_shm_id should be 12"); | 15608 "offset of GetFragDataIndexEXT index_shm_id should be 12"); |
15594 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, | 15609 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, |
15595 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); | 15610 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); |
15596 | 15611 |
15597 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15612 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |