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 14494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14505 "offset of StencilThenCoverStrokePathCHROMIUM path should be 4"); | 14505 "offset of StencilThenCoverStrokePathCHROMIUM path should be 4"); |
14506 static_assert( | 14506 static_assert( |
14507 offsetof(StencilThenCoverStrokePathCHROMIUM, reference) == 8, | 14507 offsetof(StencilThenCoverStrokePathCHROMIUM, reference) == 8, |
14508 "offset of StencilThenCoverStrokePathCHROMIUM reference should be 8"); | 14508 "offset of StencilThenCoverStrokePathCHROMIUM reference should be 8"); |
14509 static_assert(offsetof(StencilThenCoverStrokePathCHROMIUM, mask) == 12, | 14509 static_assert(offsetof(StencilThenCoverStrokePathCHROMIUM, mask) == 12, |
14510 "offset of StencilThenCoverStrokePathCHROMIUM mask should be 12"); | 14510 "offset of StencilThenCoverStrokePathCHROMIUM mask should be 12"); |
14511 static_assert( | 14511 static_assert( |
14512 offsetof(StencilThenCoverStrokePathCHROMIUM, coverMode) == 16, | 14512 offsetof(StencilThenCoverStrokePathCHROMIUM, coverMode) == 16, |
14513 "offset of StencilThenCoverStrokePathCHROMIUM coverMode should be 16"); | 14513 "offset of StencilThenCoverStrokePathCHROMIUM coverMode should be 16"); |
14514 | 14514 |
| 14515 struct StencilFillPathInstancedCHROMIUM { |
| 14516 typedef StencilFillPathInstancedCHROMIUM ValueType; |
| 14517 static const CommandId kCmdId = kStencilFillPathInstancedCHROMIUM; |
| 14518 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14519 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14520 |
| 14521 static uint32_t ComputeSize() { |
| 14522 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14523 } |
| 14524 |
| 14525 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14526 |
| 14527 void Init(GLsizei _numPaths, |
| 14528 GLenum _pathNameType, |
| 14529 uint32_t _paths_shm_id, |
| 14530 uint32_t _paths_shm_offset, |
| 14531 GLuint _pathBase, |
| 14532 GLenum _fillMode, |
| 14533 GLuint _mask, |
| 14534 GLenum _transformType, |
| 14535 uint32_t _transformValues_shm_id, |
| 14536 uint32_t _transformValues_shm_offset) { |
| 14537 SetHeader(); |
| 14538 numPaths = _numPaths; |
| 14539 pathNameType = _pathNameType; |
| 14540 paths_shm_id = _paths_shm_id; |
| 14541 paths_shm_offset = _paths_shm_offset; |
| 14542 pathBase = _pathBase; |
| 14543 fillMode = _fillMode; |
| 14544 mask = _mask; |
| 14545 transformType = _transformType; |
| 14546 transformValues_shm_id = _transformValues_shm_id; |
| 14547 transformValues_shm_offset = _transformValues_shm_offset; |
| 14548 } |
| 14549 |
| 14550 void* Set(void* cmd, |
| 14551 GLsizei _numPaths, |
| 14552 GLenum _pathNameType, |
| 14553 uint32_t _paths_shm_id, |
| 14554 uint32_t _paths_shm_offset, |
| 14555 GLuint _pathBase, |
| 14556 GLenum _fillMode, |
| 14557 GLuint _mask, |
| 14558 GLenum _transformType, |
| 14559 uint32_t _transformValues_shm_id, |
| 14560 uint32_t _transformValues_shm_offset) { |
| 14561 static_cast<ValueType*>(cmd) |
| 14562 ->Init(_numPaths, _pathNameType, _paths_shm_id, _paths_shm_offset, |
| 14563 _pathBase, _fillMode, _mask, _transformType, |
| 14564 _transformValues_shm_id, _transformValues_shm_offset); |
| 14565 return NextCmdAddress<ValueType>(cmd); |
| 14566 } |
| 14567 |
| 14568 gpu::CommandHeader header; |
| 14569 int32_t numPaths; |
| 14570 uint32_t pathNameType; |
| 14571 uint32_t paths_shm_id; |
| 14572 uint32_t paths_shm_offset; |
| 14573 uint32_t pathBase; |
| 14574 uint32_t fillMode; |
| 14575 uint32_t mask; |
| 14576 uint32_t transformType; |
| 14577 uint32_t transformValues_shm_id; |
| 14578 uint32_t transformValues_shm_offset; |
| 14579 }; |
| 14580 |
| 14581 static_assert(sizeof(StencilFillPathInstancedCHROMIUM) == 44, |
| 14582 "size of StencilFillPathInstancedCHROMIUM should be 44"); |
| 14583 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, header) == 0, |
| 14584 "offset of StencilFillPathInstancedCHROMIUM header should be 0"); |
| 14585 static_assert( |
| 14586 offsetof(StencilFillPathInstancedCHROMIUM, numPaths) == 4, |
| 14587 "offset of StencilFillPathInstancedCHROMIUM numPaths should be 4"); |
| 14588 static_assert( |
| 14589 offsetof(StencilFillPathInstancedCHROMIUM, pathNameType) == 8, |
| 14590 "offset of StencilFillPathInstancedCHROMIUM pathNameType should be 8"); |
| 14591 static_assert( |
| 14592 offsetof(StencilFillPathInstancedCHROMIUM, paths_shm_id) == 12, |
| 14593 "offset of StencilFillPathInstancedCHROMIUM paths_shm_id should be 12"); |
| 14594 static_assert( |
| 14595 offsetof(StencilFillPathInstancedCHROMIUM, paths_shm_offset) == 16, |
| 14596 "offset of StencilFillPathInstancedCHROMIUM paths_shm_offset should be 16"); |
| 14597 static_assert( |
| 14598 offsetof(StencilFillPathInstancedCHROMIUM, pathBase) == 20, |
| 14599 "offset of StencilFillPathInstancedCHROMIUM pathBase should be 20"); |
| 14600 static_assert( |
| 14601 offsetof(StencilFillPathInstancedCHROMIUM, fillMode) == 24, |
| 14602 "offset of StencilFillPathInstancedCHROMIUM fillMode should be 24"); |
| 14603 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, mask) == 28, |
| 14604 "offset of StencilFillPathInstancedCHROMIUM mask should be 28"); |
| 14605 static_assert( |
| 14606 offsetof(StencilFillPathInstancedCHROMIUM, transformType) == 32, |
| 14607 "offset of StencilFillPathInstancedCHROMIUM transformType should be 32"); |
| 14608 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, |
| 14609 transformValues_shm_id) == 36, |
| 14610 "offset of StencilFillPathInstancedCHROMIUM " |
| 14611 "transformValues_shm_id should be 36"); |
| 14612 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, |
| 14613 transformValues_shm_offset) == 40, |
| 14614 "offset of StencilFillPathInstancedCHROMIUM " |
| 14615 "transformValues_shm_offset should be 40"); |
| 14616 |
| 14617 struct StencilStrokePathInstancedCHROMIUM { |
| 14618 typedef StencilStrokePathInstancedCHROMIUM ValueType; |
| 14619 static const CommandId kCmdId = kStencilStrokePathInstancedCHROMIUM; |
| 14620 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14621 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14622 |
| 14623 static uint32_t ComputeSize() { |
| 14624 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14625 } |
| 14626 |
| 14627 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14628 |
| 14629 void Init(GLsizei _numPaths, |
| 14630 GLenum _pathNameType, |
| 14631 uint32_t _paths_shm_id, |
| 14632 uint32_t _paths_shm_offset, |
| 14633 GLuint _pathBase, |
| 14634 GLint _reference, |
| 14635 GLuint _mask, |
| 14636 GLenum _transformType, |
| 14637 uint32_t _transformValues_shm_id, |
| 14638 uint32_t _transformValues_shm_offset) { |
| 14639 SetHeader(); |
| 14640 numPaths = _numPaths; |
| 14641 pathNameType = _pathNameType; |
| 14642 paths_shm_id = _paths_shm_id; |
| 14643 paths_shm_offset = _paths_shm_offset; |
| 14644 pathBase = _pathBase; |
| 14645 reference = _reference; |
| 14646 mask = _mask; |
| 14647 transformType = _transformType; |
| 14648 transformValues_shm_id = _transformValues_shm_id; |
| 14649 transformValues_shm_offset = _transformValues_shm_offset; |
| 14650 } |
| 14651 |
| 14652 void* Set(void* cmd, |
| 14653 GLsizei _numPaths, |
| 14654 GLenum _pathNameType, |
| 14655 uint32_t _paths_shm_id, |
| 14656 uint32_t _paths_shm_offset, |
| 14657 GLuint _pathBase, |
| 14658 GLint _reference, |
| 14659 GLuint _mask, |
| 14660 GLenum _transformType, |
| 14661 uint32_t _transformValues_shm_id, |
| 14662 uint32_t _transformValues_shm_offset) { |
| 14663 static_cast<ValueType*>(cmd) |
| 14664 ->Init(_numPaths, _pathNameType, _paths_shm_id, _paths_shm_offset, |
| 14665 _pathBase, _reference, _mask, _transformType, |
| 14666 _transformValues_shm_id, _transformValues_shm_offset); |
| 14667 return NextCmdAddress<ValueType>(cmd); |
| 14668 } |
| 14669 |
| 14670 gpu::CommandHeader header; |
| 14671 int32_t numPaths; |
| 14672 uint32_t pathNameType; |
| 14673 uint32_t paths_shm_id; |
| 14674 uint32_t paths_shm_offset; |
| 14675 uint32_t pathBase; |
| 14676 int32_t reference; |
| 14677 uint32_t mask; |
| 14678 uint32_t transformType; |
| 14679 uint32_t transformValues_shm_id; |
| 14680 uint32_t transformValues_shm_offset; |
| 14681 }; |
| 14682 |
| 14683 static_assert(sizeof(StencilStrokePathInstancedCHROMIUM) == 44, |
| 14684 "size of StencilStrokePathInstancedCHROMIUM should be 44"); |
| 14685 static_assert( |
| 14686 offsetof(StencilStrokePathInstancedCHROMIUM, header) == 0, |
| 14687 "offset of StencilStrokePathInstancedCHROMIUM header should be 0"); |
| 14688 static_assert( |
| 14689 offsetof(StencilStrokePathInstancedCHROMIUM, numPaths) == 4, |
| 14690 "offset of StencilStrokePathInstancedCHROMIUM numPaths should be 4"); |
| 14691 static_assert( |
| 14692 offsetof(StencilStrokePathInstancedCHROMIUM, pathNameType) == 8, |
| 14693 "offset of StencilStrokePathInstancedCHROMIUM pathNameType should be 8"); |
| 14694 static_assert( |
| 14695 offsetof(StencilStrokePathInstancedCHROMIUM, paths_shm_id) == 12, |
| 14696 "offset of StencilStrokePathInstancedCHROMIUM paths_shm_id should be 12"); |
| 14697 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, paths_shm_offset) == |
| 14698 16, |
| 14699 "offset of StencilStrokePathInstancedCHROMIUM paths_shm_offset " |
| 14700 "should be 16"); |
| 14701 static_assert( |
| 14702 offsetof(StencilStrokePathInstancedCHROMIUM, pathBase) == 20, |
| 14703 "offset of StencilStrokePathInstancedCHROMIUM pathBase should be 20"); |
| 14704 static_assert( |
| 14705 offsetof(StencilStrokePathInstancedCHROMIUM, reference) == 24, |
| 14706 "offset of StencilStrokePathInstancedCHROMIUM reference should be 24"); |
| 14707 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, mask) == 28, |
| 14708 "offset of StencilStrokePathInstancedCHROMIUM mask should be 28"); |
| 14709 static_assert( |
| 14710 offsetof(StencilStrokePathInstancedCHROMIUM, transformType) == 32, |
| 14711 "offset of StencilStrokePathInstancedCHROMIUM transformType should be 32"); |
| 14712 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, |
| 14713 transformValues_shm_id) == 36, |
| 14714 "offset of StencilStrokePathInstancedCHROMIUM " |
| 14715 "transformValues_shm_id should be 36"); |
| 14716 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, |
| 14717 transformValues_shm_offset) == 40, |
| 14718 "offset of StencilStrokePathInstancedCHROMIUM " |
| 14719 "transformValues_shm_offset should be 40"); |
| 14720 |
| 14721 struct CoverFillPathInstancedCHROMIUM { |
| 14722 typedef CoverFillPathInstancedCHROMIUM ValueType; |
| 14723 static const CommandId kCmdId = kCoverFillPathInstancedCHROMIUM; |
| 14724 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14725 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14726 |
| 14727 static uint32_t ComputeSize() { |
| 14728 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14729 } |
| 14730 |
| 14731 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14732 |
| 14733 void Init(GLsizei _numPaths, |
| 14734 GLenum _pathNameType, |
| 14735 uint32_t _paths_shm_id, |
| 14736 uint32_t _paths_shm_offset, |
| 14737 GLuint _pathBase, |
| 14738 GLenum _coverMode, |
| 14739 GLenum _transformType, |
| 14740 uint32_t _transformValues_shm_id, |
| 14741 uint32_t _transformValues_shm_offset) { |
| 14742 SetHeader(); |
| 14743 numPaths = _numPaths; |
| 14744 pathNameType = _pathNameType; |
| 14745 paths_shm_id = _paths_shm_id; |
| 14746 paths_shm_offset = _paths_shm_offset; |
| 14747 pathBase = _pathBase; |
| 14748 coverMode = _coverMode; |
| 14749 transformType = _transformType; |
| 14750 transformValues_shm_id = _transformValues_shm_id; |
| 14751 transformValues_shm_offset = _transformValues_shm_offset; |
| 14752 } |
| 14753 |
| 14754 void* Set(void* cmd, |
| 14755 GLsizei _numPaths, |
| 14756 GLenum _pathNameType, |
| 14757 uint32_t _paths_shm_id, |
| 14758 uint32_t _paths_shm_offset, |
| 14759 GLuint _pathBase, |
| 14760 GLenum _coverMode, |
| 14761 GLenum _transformType, |
| 14762 uint32_t _transformValues_shm_id, |
| 14763 uint32_t _transformValues_shm_offset) { |
| 14764 static_cast<ValueType*>(cmd)->Init(_numPaths, _pathNameType, _paths_shm_id, |
| 14765 _paths_shm_offset, _pathBase, _coverMode, |
| 14766 _transformType, _transformValues_shm_id, |
| 14767 _transformValues_shm_offset); |
| 14768 return NextCmdAddress<ValueType>(cmd); |
| 14769 } |
| 14770 |
| 14771 gpu::CommandHeader header; |
| 14772 int32_t numPaths; |
| 14773 uint32_t pathNameType; |
| 14774 uint32_t paths_shm_id; |
| 14775 uint32_t paths_shm_offset; |
| 14776 uint32_t pathBase; |
| 14777 uint32_t coverMode; |
| 14778 uint32_t transformType; |
| 14779 uint32_t transformValues_shm_id; |
| 14780 uint32_t transformValues_shm_offset; |
| 14781 }; |
| 14782 |
| 14783 static_assert(sizeof(CoverFillPathInstancedCHROMIUM) == 40, |
| 14784 "size of CoverFillPathInstancedCHROMIUM should be 40"); |
| 14785 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, header) == 0, |
| 14786 "offset of CoverFillPathInstancedCHROMIUM header should be 0"); |
| 14787 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, numPaths) == 4, |
| 14788 "offset of CoverFillPathInstancedCHROMIUM numPaths should be 4"); |
| 14789 static_assert( |
| 14790 offsetof(CoverFillPathInstancedCHROMIUM, pathNameType) == 8, |
| 14791 "offset of CoverFillPathInstancedCHROMIUM pathNameType should be 8"); |
| 14792 static_assert( |
| 14793 offsetof(CoverFillPathInstancedCHROMIUM, paths_shm_id) == 12, |
| 14794 "offset of CoverFillPathInstancedCHROMIUM paths_shm_id should be 12"); |
| 14795 static_assert( |
| 14796 offsetof(CoverFillPathInstancedCHROMIUM, paths_shm_offset) == 16, |
| 14797 "offset of CoverFillPathInstancedCHROMIUM paths_shm_offset should be 16"); |
| 14798 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, pathBase) == 20, |
| 14799 "offset of CoverFillPathInstancedCHROMIUM pathBase should be 20"); |
| 14800 static_assert( |
| 14801 offsetof(CoverFillPathInstancedCHROMIUM, coverMode) == 24, |
| 14802 "offset of CoverFillPathInstancedCHROMIUM coverMode should be 24"); |
| 14803 static_assert( |
| 14804 offsetof(CoverFillPathInstancedCHROMIUM, transformType) == 28, |
| 14805 "offset of CoverFillPathInstancedCHROMIUM transformType should be 28"); |
| 14806 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, |
| 14807 transformValues_shm_id) == 32, |
| 14808 "offset of CoverFillPathInstancedCHROMIUM transformValues_shm_id " |
| 14809 "should be 32"); |
| 14810 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, |
| 14811 transformValues_shm_offset) == 36, |
| 14812 "offset of CoverFillPathInstancedCHROMIUM " |
| 14813 "transformValues_shm_offset should be 36"); |
| 14814 |
| 14815 struct CoverStrokePathInstancedCHROMIUM { |
| 14816 typedef CoverStrokePathInstancedCHROMIUM ValueType; |
| 14817 static const CommandId kCmdId = kCoverStrokePathInstancedCHROMIUM; |
| 14818 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14819 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14820 |
| 14821 static uint32_t ComputeSize() { |
| 14822 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14823 } |
| 14824 |
| 14825 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14826 |
| 14827 void Init(GLsizei _numPaths, |
| 14828 GLenum _pathNameType, |
| 14829 uint32_t _paths_shm_id, |
| 14830 uint32_t _paths_shm_offset, |
| 14831 GLuint _pathBase, |
| 14832 GLenum _coverMode, |
| 14833 GLenum _transformType, |
| 14834 uint32_t _transformValues_shm_id, |
| 14835 uint32_t _transformValues_shm_offset) { |
| 14836 SetHeader(); |
| 14837 numPaths = _numPaths; |
| 14838 pathNameType = _pathNameType; |
| 14839 paths_shm_id = _paths_shm_id; |
| 14840 paths_shm_offset = _paths_shm_offset; |
| 14841 pathBase = _pathBase; |
| 14842 coverMode = _coverMode; |
| 14843 transformType = _transformType; |
| 14844 transformValues_shm_id = _transformValues_shm_id; |
| 14845 transformValues_shm_offset = _transformValues_shm_offset; |
| 14846 } |
| 14847 |
| 14848 void* Set(void* cmd, |
| 14849 GLsizei _numPaths, |
| 14850 GLenum _pathNameType, |
| 14851 uint32_t _paths_shm_id, |
| 14852 uint32_t _paths_shm_offset, |
| 14853 GLuint _pathBase, |
| 14854 GLenum _coverMode, |
| 14855 GLenum _transformType, |
| 14856 uint32_t _transformValues_shm_id, |
| 14857 uint32_t _transformValues_shm_offset) { |
| 14858 static_cast<ValueType*>(cmd)->Init(_numPaths, _pathNameType, _paths_shm_id, |
| 14859 _paths_shm_offset, _pathBase, _coverMode, |
| 14860 _transformType, _transformValues_shm_id, |
| 14861 _transformValues_shm_offset); |
| 14862 return NextCmdAddress<ValueType>(cmd); |
| 14863 } |
| 14864 |
| 14865 gpu::CommandHeader header; |
| 14866 int32_t numPaths; |
| 14867 uint32_t pathNameType; |
| 14868 uint32_t paths_shm_id; |
| 14869 uint32_t paths_shm_offset; |
| 14870 uint32_t pathBase; |
| 14871 uint32_t coverMode; |
| 14872 uint32_t transformType; |
| 14873 uint32_t transformValues_shm_id; |
| 14874 uint32_t transformValues_shm_offset; |
| 14875 }; |
| 14876 |
| 14877 static_assert(sizeof(CoverStrokePathInstancedCHROMIUM) == 40, |
| 14878 "size of CoverStrokePathInstancedCHROMIUM should be 40"); |
| 14879 static_assert(offsetof(CoverStrokePathInstancedCHROMIUM, header) == 0, |
| 14880 "offset of CoverStrokePathInstancedCHROMIUM header should be 0"); |
| 14881 static_assert( |
| 14882 offsetof(CoverStrokePathInstancedCHROMIUM, numPaths) == 4, |
| 14883 "offset of CoverStrokePathInstancedCHROMIUM numPaths should be 4"); |
| 14884 static_assert( |
| 14885 offsetof(CoverStrokePathInstancedCHROMIUM, pathNameType) == 8, |
| 14886 "offset of CoverStrokePathInstancedCHROMIUM pathNameType should be 8"); |
| 14887 static_assert( |
| 14888 offsetof(CoverStrokePathInstancedCHROMIUM, paths_shm_id) == 12, |
| 14889 "offset of CoverStrokePathInstancedCHROMIUM paths_shm_id should be 12"); |
| 14890 static_assert( |
| 14891 offsetof(CoverStrokePathInstancedCHROMIUM, paths_shm_offset) == 16, |
| 14892 "offset of CoverStrokePathInstancedCHROMIUM paths_shm_offset should be 16"); |
| 14893 static_assert( |
| 14894 offsetof(CoverStrokePathInstancedCHROMIUM, pathBase) == 20, |
| 14895 "offset of CoverStrokePathInstancedCHROMIUM pathBase should be 20"); |
| 14896 static_assert( |
| 14897 offsetof(CoverStrokePathInstancedCHROMIUM, coverMode) == 24, |
| 14898 "offset of CoverStrokePathInstancedCHROMIUM coverMode should be 24"); |
| 14899 static_assert( |
| 14900 offsetof(CoverStrokePathInstancedCHROMIUM, transformType) == 28, |
| 14901 "offset of CoverStrokePathInstancedCHROMIUM transformType should be 28"); |
| 14902 static_assert(offsetof(CoverStrokePathInstancedCHROMIUM, |
| 14903 transformValues_shm_id) == 32, |
| 14904 "offset of CoverStrokePathInstancedCHROMIUM " |
| 14905 "transformValues_shm_id should be 32"); |
| 14906 static_assert(offsetof(CoverStrokePathInstancedCHROMIUM, |
| 14907 transformValues_shm_offset) == 36, |
| 14908 "offset of CoverStrokePathInstancedCHROMIUM " |
| 14909 "transformValues_shm_offset should be 36"); |
| 14910 |
| 14911 struct StencilThenCoverFillPathInstancedCHROMIUM { |
| 14912 typedef StencilThenCoverFillPathInstancedCHROMIUM ValueType; |
| 14913 static const CommandId kCmdId = kStencilThenCoverFillPathInstancedCHROMIUM; |
| 14914 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14915 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14916 |
| 14917 static uint32_t ComputeSize() { |
| 14918 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14919 } |
| 14920 |
| 14921 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14922 |
| 14923 void Init(GLsizei _numPaths, |
| 14924 GLenum _pathNameType, |
| 14925 uint32_t _paths_shm_id, |
| 14926 uint32_t _paths_shm_offset, |
| 14927 GLuint _pathBase, |
| 14928 GLenum _fillMode, |
| 14929 GLuint _mask, |
| 14930 GLenum _coverMode, |
| 14931 GLenum _transformType, |
| 14932 uint32_t _transformValues_shm_id, |
| 14933 uint32_t _transformValues_shm_offset) { |
| 14934 SetHeader(); |
| 14935 numPaths = _numPaths; |
| 14936 pathNameType = _pathNameType; |
| 14937 paths_shm_id = _paths_shm_id; |
| 14938 paths_shm_offset = _paths_shm_offset; |
| 14939 pathBase = _pathBase; |
| 14940 fillMode = _fillMode; |
| 14941 mask = _mask; |
| 14942 coverMode = _coverMode; |
| 14943 transformType = _transformType; |
| 14944 transformValues_shm_id = _transformValues_shm_id; |
| 14945 transformValues_shm_offset = _transformValues_shm_offset; |
| 14946 } |
| 14947 |
| 14948 void* Set(void* cmd, |
| 14949 GLsizei _numPaths, |
| 14950 GLenum _pathNameType, |
| 14951 uint32_t _paths_shm_id, |
| 14952 uint32_t _paths_shm_offset, |
| 14953 GLuint _pathBase, |
| 14954 GLenum _fillMode, |
| 14955 GLuint _mask, |
| 14956 GLenum _coverMode, |
| 14957 GLenum _transformType, |
| 14958 uint32_t _transformValues_shm_id, |
| 14959 uint32_t _transformValues_shm_offset) { |
| 14960 static_cast<ValueType*>(cmd) |
| 14961 ->Init(_numPaths, _pathNameType, _paths_shm_id, _paths_shm_offset, |
| 14962 _pathBase, _fillMode, _mask, _coverMode, _transformType, |
| 14963 _transformValues_shm_id, _transformValues_shm_offset); |
| 14964 return NextCmdAddress<ValueType>(cmd); |
| 14965 } |
| 14966 |
| 14967 gpu::CommandHeader header; |
| 14968 int32_t numPaths; |
| 14969 uint32_t pathNameType; |
| 14970 uint32_t paths_shm_id; |
| 14971 uint32_t paths_shm_offset; |
| 14972 uint32_t pathBase; |
| 14973 uint32_t fillMode; |
| 14974 uint32_t mask; |
| 14975 uint32_t coverMode; |
| 14976 uint32_t transformType; |
| 14977 uint32_t transformValues_shm_id; |
| 14978 uint32_t transformValues_shm_offset; |
| 14979 }; |
| 14980 |
| 14981 static_assert(sizeof(StencilThenCoverFillPathInstancedCHROMIUM) == 48, |
| 14982 "size of StencilThenCoverFillPathInstancedCHROMIUM should be 48"); |
| 14983 static_assert( |
| 14984 offsetof(StencilThenCoverFillPathInstancedCHROMIUM, header) == 0, |
| 14985 "offset of StencilThenCoverFillPathInstancedCHROMIUM header should be 0"); |
| 14986 static_assert( |
| 14987 offsetof(StencilThenCoverFillPathInstancedCHROMIUM, numPaths) == 4, |
| 14988 "offset of StencilThenCoverFillPathInstancedCHROMIUM numPaths should be 4"); |
| 14989 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 14990 pathNameType) == 8, |
| 14991 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 14992 "pathNameType should be 8"); |
| 14993 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 14994 paths_shm_id) == 12, |
| 14995 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 14996 "paths_shm_id should be 12"); |
| 14997 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 14998 paths_shm_offset) == 16, |
| 14999 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 15000 "paths_shm_offset should be 16"); |
| 15001 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, pathBase) == |
| 15002 20, |
| 15003 "offset of StencilThenCoverFillPathInstancedCHROMIUM pathBase " |
| 15004 "should be 20"); |
| 15005 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, fillMode) == |
| 15006 24, |
| 15007 "offset of StencilThenCoverFillPathInstancedCHROMIUM fillMode " |
| 15008 "should be 24"); |
| 15009 static_assert( |
| 15010 offsetof(StencilThenCoverFillPathInstancedCHROMIUM, mask) == 28, |
| 15011 "offset of StencilThenCoverFillPathInstancedCHROMIUM mask should be 28"); |
| 15012 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, coverMode) == |
| 15013 32, |
| 15014 "offset of StencilThenCoverFillPathInstancedCHROMIUM coverMode " |
| 15015 "should be 32"); |
| 15016 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 15017 transformType) == 36, |
| 15018 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 15019 "transformType should be 36"); |
| 15020 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 15021 transformValues_shm_id) == 40, |
| 15022 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 15023 "transformValues_shm_id should be 40"); |
| 15024 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 15025 transformValues_shm_offset) == 44, |
| 15026 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 15027 "transformValues_shm_offset should be 44"); |
| 15028 |
| 15029 struct StencilThenCoverStrokePathInstancedCHROMIUM { |
| 15030 typedef StencilThenCoverStrokePathInstancedCHROMIUM ValueType; |
| 15031 static const CommandId kCmdId = kStencilThenCoverStrokePathInstancedCHROMIUM; |
| 15032 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15033 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15034 |
| 15035 static uint32_t ComputeSize() { |
| 15036 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15037 } |
| 15038 |
| 15039 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15040 |
| 15041 void Init(GLsizei _numPaths, |
| 15042 GLenum _pathNameType, |
| 15043 uint32_t _paths_shm_id, |
| 15044 uint32_t _paths_shm_offset, |
| 15045 GLuint _pathBase, |
| 15046 GLint _reference, |
| 15047 GLuint _mask, |
| 15048 GLenum _coverMode, |
| 15049 GLenum _transformType, |
| 15050 uint32_t _transformValues_shm_id, |
| 15051 uint32_t _transformValues_shm_offset) { |
| 15052 SetHeader(); |
| 15053 numPaths = _numPaths; |
| 15054 pathNameType = _pathNameType; |
| 15055 paths_shm_id = _paths_shm_id; |
| 15056 paths_shm_offset = _paths_shm_offset; |
| 15057 pathBase = _pathBase; |
| 15058 reference = _reference; |
| 15059 mask = _mask; |
| 15060 coverMode = _coverMode; |
| 15061 transformType = _transformType; |
| 15062 transformValues_shm_id = _transformValues_shm_id; |
| 15063 transformValues_shm_offset = _transformValues_shm_offset; |
| 15064 } |
| 15065 |
| 15066 void* Set(void* cmd, |
| 15067 GLsizei _numPaths, |
| 15068 GLenum _pathNameType, |
| 15069 uint32_t _paths_shm_id, |
| 15070 uint32_t _paths_shm_offset, |
| 15071 GLuint _pathBase, |
| 15072 GLint _reference, |
| 15073 GLuint _mask, |
| 15074 GLenum _coverMode, |
| 15075 GLenum _transformType, |
| 15076 uint32_t _transformValues_shm_id, |
| 15077 uint32_t _transformValues_shm_offset) { |
| 15078 static_cast<ValueType*>(cmd) |
| 15079 ->Init(_numPaths, _pathNameType, _paths_shm_id, _paths_shm_offset, |
| 15080 _pathBase, _reference, _mask, _coverMode, _transformType, |
| 15081 _transformValues_shm_id, _transformValues_shm_offset); |
| 15082 return NextCmdAddress<ValueType>(cmd); |
| 15083 } |
| 15084 |
| 15085 gpu::CommandHeader header; |
| 15086 int32_t numPaths; |
| 15087 uint32_t pathNameType; |
| 15088 uint32_t paths_shm_id; |
| 15089 uint32_t paths_shm_offset; |
| 15090 uint32_t pathBase; |
| 15091 int32_t reference; |
| 15092 uint32_t mask; |
| 15093 uint32_t coverMode; |
| 15094 uint32_t transformType; |
| 15095 uint32_t transformValues_shm_id; |
| 15096 uint32_t transformValues_shm_offset; |
| 15097 }; |
| 15098 |
| 15099 static_assert( |
| 15100 sizeof(StencilThenCoverStrokePathInstancedCHROMIUM) == 48, |
| 15101 "size of StencilThenCoverStrokePathInstancedCHROMIUM should be 48"); |
| 15102 static_assert( |
| 15103 offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, header) == 0, |
| 15104 "offset of StencilThenCoverStrokePathInstancedCHROMIUM header should be 0"); |
| 15105 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, numPaths) == |
| 15106 4, |
| 15107 "offset of StencilThenCoverStrokePathInstancedCHROMIUM numPaths " |
| 15108 "should be 4"); |
| 15109 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 15110 pathNameType) == 8, |
| 15111 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 15112 "pathNameType should be 8"); |
| 15113 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 15114 paths_shm_id) == 12, |
| 15115 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 15116 "paths_shm_id should be 12"); |
| 15117 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 15118 paths_shm_offset) == 16, |
| 15119 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 15120 "paths_shm_offset should be 16"); |
| 15121 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, pathBase) == |
| 15122 20, |
| 15123 "offset of StencilThenCoverStrokePathInstancedCHROMIUM pathBase " |
| 15124 "should be 20"); |
| 15125 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 15126 reference) == 24, |
| 15127 "offset of StencilThenCoverStrokePathInstancedCHROMIUM reference " |
| 15128 "should be 24"); |
| 15129 static_assert( |
| 15130 offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, mask) == 28, |
| 15131 "offset of StencilThenCoverStrokePathInstancedCHROMIUM mask should be 28"); |
| 15132 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 15133 coverMode) == 32, |
| 15134 "offset of StencilThenCoverStrokePathInstancedCHROMIUM coverMode " |
| 15135 "should be 32"); |
| 15136 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 15137 transformType) == 36, |
| 15138 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 15139 "transformType should be 36"); |
| 15140 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 15141 transformValues_shm_id) == 40, |
| 15142 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 15143 "transformValues_shm_id should be 40"); |
| 15144 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 15145 transformValues_shm_offset) == 44, |
| 15146 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 15147 "transformValues_shm_offset should be 44"); |
| 15148 |
14515 struct BlendBarrierKHR { | 15149 struct BlendBarrierKHR { |
14516 typedef BlendBarrierKHR ValueType; | 15150 typedef BlendBarrierKHR ValueType; |
14517 static const CommandId kCmdId = kBlendBarrierKHR; | 15151 static const CommandId kCmdId = kBlendBarrierKHR; |
14518 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15152 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
14519 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15153 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
14520 | 15154 |
14521 static uint32_t ComputeSize() { | 15155 static uint32_t ComputeSize() { |
14522 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15156 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
14523 } | 15157 } |
14524 | 15158 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14561 gpu::CommandHeader header; | 15195 gpu::CommandHeader header; |
14562 }; | 15196 }; |
14563 | 15197 |
14564 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, | 15198 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, |
14565 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); | 15199 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); |
14566 static_assert( | 15200 static_assert( |
14567 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, | 15201 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, |
14568 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); | 15202 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); |
14569 | 15203 |
14570 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15204 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |