| 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 13751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13762 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13762 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13763 | 13763 |
| 13764 static uint32_t ComputeSize() { | 13764 static uint32_t ComputeSize() { |
| 13765 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13765 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13766 } | 13766 } |
| 13767 | 13767 |
| 13768 void SetHeader() { header.SetCmd<ValueType>(); } | 13768 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13769 | 13769 |
| 13770 void Init(GLint _plane_z_order, | 13770 void Init(GLint _plane_z_order, |
| 13771 GLenum _plane_transform, | 13771 GLenum _plane_transform, |
| 13772 GLuint _storage_format, |
| 13772 GLuint _overlay_texture_id, | 13773 GLuint _overlay_texture_id, |
| 13773 GLint _bounds_x, | 13774 GLint _bounds_x, |
| 13774 GLint _bounds_y, | 13775 GLint _bounds_y, |
| 13775 GLint _bounds_width, | 13776 GLint _bounds_width, |
| 13776 GLint _bounds_height, | 13777 GLint _bounds_height, |
| 13777 GLfloat _uv_x, | 13778 GLfloat _uv_x, |
| 13778 GLfloat _uv_y, | 13779 GLfloat _uv_y, |
| 13779 GLfloat _uv_width, | 13780 GLfloat _uv_width, |
| 13780 GLfloat _uv_height) { | 13781 GLfloat _uv_height, |
| 13782 GLboolean _handle_scaling) { |
| 13781 SetHeader(); | 13783 SetHeader(); |
| 13782 plane_z_order = _plane_z_order; | 13784 plane_z_order = _plane_z_order; |
| 13783 plane_transform = _plane_transform; | 13785 plane_transform = _plane_transform; |
| 13786 storage_format = _storage_format; |
| 13784 overlay_texture_id = _overlay_texture_id; | 13787 overlay_texture_id = _overlay_texture_id; |
| 13785 bounds_x = _bounds_x; | 13788 bounds_x = _bounds_x; |
| 13786 bounds_y = _bounds_y; | 13789 bounds_y = _bounds_y; |
| 13787 bounds_width = _bounds_width; | 13790 bounds_width = _bounds_width; |
| 13788 bounds_height = _bounds_height; | 13791 bounds_height = _bounds_height; |
| 13789 uv_x = _uv_x; | 13792 uv_x = _uv_x; |
| 13790 uv_y = _uv_y; | 13793 uv_y = _uv_y; |
| 13791 uv_width = _uv_width; | 13794 uv_width = _uv_width; |
| 13792 uv_height = _uv_height; | 13795 uv_height = _uv_height; |
| 13796 handle_scaling = _handle_scaling; |
| 13793 } | 13797 } |
| 13794 | 13798 |
| 13795 void* Set(void* cmd, | 13799 void* Set(void* cmd, |
| 13796 GLint _plane_z_order, | 13800 GLint _plane_z_order, |
| 13797 GLenum _plane_transform, | 13801 GLenum _plane_transform, |
| 13802 GLuint _storage_format, |
| 13798 GLuint _overlay_texture_id, | 13803 GLuint _overlay_texture_id, |
| 13799 GLint _bounds_x, | 13804 GLint _bounds_x, |
| 13800 GLint _bounds_y, | 13805 GLint _bounds_y, |
| 13801 GLint _bounds_width, | 13806 GLint _bounds_width, |
| 13802 GLint _bounds_height, | 13807 GLint _bounds_height, |
| 13803 GLfloat _uv_x, | 13808 GLfloat _uv_x, |
| 13804 GLfloat _uv_y, | 13809 GLfloat _uv_y, |
| 13805 GLfloat _uv_width, | 13810 GLfloat _uv_width, |
| 13806 GLfloat _uv_height) { | 13811 GLfloat _uv_height, |
| 13807 static_cast<ValueType*>(cmd)->Init(_plane_z_order, _plane_transform, | 13812 GLboolean _handle_scaling) { |
| 13808 _overlay_texture_id, _bounds_x, | 13813 static_cast<ValueType*>(cmd)->Init( |
| 13809 _bounds_y, _bounds_width, _bounds_height, | 13814 _plane_z_order, _plane_transform, _storage_format, _overlay_texture_id, |
| 13810 _uv_x, _uv_y, _uv_width, _uv_height); | 13815 _bounds_x, _bounds_y, _bounds_width, _bounds_height, _uv_x, _uv_y, |
| 13816 _uv_width, _uv_height, _handle_scaling); |
| 13811 return NextCmdAddress<ValueType>(cmd); | 13817 return NextCmdAddress<ValueType>(cmd); |
| 13812 } | 13818 } |
| 13813 | 13819 |
| 13814 gpu::CommandHeader header; | 13820 gpu::CommandHeader header; |
| 13815 int32_t plane_z_order; | 13821 int32_t plane_z_order; |
| 13816 uint32_t plane_transform; | 13822 uint32_t plane_transform; |
| 13823 uint32_t storage_format; |
| 13817 uint32_t overlay_texture_id; | 13824 uint32_t overlay_texture_id; |
| 13818 int32_t bounds_x; | 13825 int32_t bounds_x; |
| 13819 int32_t bounds_y; | 13826 int32_t bounds_y; |
| 13820 int32_t bounds_width; | 13827 int32_t bounds_width; |
| 13821 int32_t bounds_height; | 13828 int32_t bounds_height; |
| 13822 float uv_x; | 13829 float uv_x; |
| 13823 float uv_y; | 13830 float uv_y; |
| 13824 float uv_width; | 13831 float uv_width; |
| 13825 float uv_height; | 13832 float uv_height; |
| 13833 uint32_t handle_scaling; |
| 13826 }; | 13834 }; |
| 13827 | 13835 |
| 13828 static_assert(sizeof(ScheduleOverlayPlaneCHROMIUM) == 48, | 13836 static_assert(sizeof(ScheduleOverlayPlaneCHROMIUM) == 56, |
| 13829 "size of ScheduleOverlayPlaneCHROMIUM should be 48"); | 13837 "size of ScheduleOverlayPlaneCHROMIUM should be 56"); |
| 13830 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, header) == 0, | 13838 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, header) == 0, |
| 13831 "offset of ScheduleOverlayPlaneCHROMIUM header should be 0"); | 13839 "offset of ScheduleOverlayPlaneCHROMIUM header should be 0"); |
| 13832 static_assert( | 13840 static_assert( |
| 13833 offsetof(ScheduleOverlayPlaneCHROMIUM, plane_z_order) == 4, | 13841 offsetof(ScheduleOverlayPlaneCHROMIUM, plane_z_order) == 4, |
| 13834 "offset of ScheduleOverlayPlaneCHROMIUM plane_z_order should be 4"); | 13842 "offset of ScheduleOverlayPlaneCHROMIUM plane_z_order should be 4"); |
| 13835 static_assert( | 13843 static_assert( |
| 13836 offsetof(ScheduleOverlayPlaneCHROMIUM, plane_transform) == 8, | 13844 offsetof(ScheduleOverlayPlaneCHROMIUM, plane_transform) == 8, |
| 13837 "offset of ScheduleOverlayPlaneCHROMIUM plane_transform should be 8"); | 13845 "offset of ScheduleOverlayPlaneCHROMIUM plane_transform should be 8"); |
| 13838 static_assert( | 13846 static_assert( |
| 13839 offsetof(ScheduleOverlayPlaneCHROMIUM, overlay_texture_id) == 12, | 13847 offsetof(ScheduleOverlayPlaneCHROMIUM, storage_format) == 12, |
| 13840 "offset of ScheduleOverlayPlaneCHROMIUM overlay_texture_id should be 12"); | 13848 "offset of ScheduleOverlayPlaneCHROMIUM storage_format should be 12"); |
| 13841 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_x) == 16, | |
| 13842 "offset of ScheduleOverlayPlaneCHROMIUM bounds_x should be 16"); | |
| 13843 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_y) == 20, | |
| 13844 "offset of ScheduleOverlayPlaneCHROMIUM bounds_y should be 20"); | |
| 13845 static_assert( | 13849 static_assert( |
| 13846 offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_width) == 24, | 13850 offsetof(ScheduleOverlayPlaneCHROMIUM, overlay_texture_id) == 16, |
| 13847 "offset of ScheduleOverlayPlaneCHROMIUM bounds_width should be 24"); | 13851 "offset of ScheduleOverlayPlaneCHROMIUM overlay_texture_id should be 16"); |
| 13852 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_x) == 20, |
| 13853 "offset of ScheduleOverlayPlaneCHROMIUM bounds_x should be 20"); |
| 13854 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_y) == 24, |
| 13855 "offset of ScheduleOverlayPlaneCHROMIUM bounds_y should be 24"); |
| 13848 static_assert( | 13856 static_assert( |
| 13849 offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_height) == 28, | 13857 offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_width) == 28, |
| 13850 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 28"); | 13858 "offset of ScheduleOverlayPlaneCHROMIUM bounds_width should be 28"); |
| 13851 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, | 13859 static_assert( |
| 13852 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 32"); | 13860 offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_height) == 32, |
| 13853 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, | 13861 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 32"); |
| 13854 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36"); | 13862 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 36, |
| 13855 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, | 13863 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 36"); |
| 13856 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40"); | 13864 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 40, |
| 13857 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, | 13865 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 40"); |
| 13858 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44"); | 13866 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 44, |
| 13867 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 44"); |
| 13868 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 48, |
| 13869 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 48"); |
| 13870 static_assert( |
| 13871 offsetof(ScheduleOverlayPlaneCHROMIUM, handle_scaling) == 52, |
| 13872 "offset of ScheduleOverlayPlaneCHROMIUM handle_scaling should be 52"); |
| 13859 | 13873 |
| 13860 struct ScheduleCALayerCHROMIUM { | 13874 struct ScheduleCALayerCHROMIUM { |
| 13861 typedef ScheduleCALayerCHROMIUM ValueType; | 13875 typedef ScheduleCALayerCHROMIUM ValueType; |
| 13862 static const CommandId kCmdId = kScheduleCALayerCHROMIUM; | 13876 static const CommandId kCmdId = kScheduleCALayerCHROMIUM; |
| 13863 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13877 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13864 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13878 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13865 | 13879 |
| 13866 static uint32_t ComputeSize() { | 13880 static uint32_t ComputeSize() { |
| 13867 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13881 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13868 } | 13882 } |
| (...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15626 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, | 15640 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, |
| 15627 "offset of GetFragDataIndexEXT program should be 4"); | 15641 "offset of GetFragDataIndexEXT program should be 4"); |
| 15628 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, | 15642 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, |
| 15629 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); | 15643 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); |
| 15630 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, | 15644 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, |
| 15631 "offset of GetFragDataIndexEXT index_shm_id should be 12"); | 15645 "offset of GetFragDataIndexEXT index_shm_id should be 12"); |
| 15632 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, | 15646 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, |
| 15633 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); | 15647 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); |
| 15634 | 15648 |
| 15635 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15649 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |