Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 169403005: command_buffer: Implement path rendering functions for CHROMIUM_path_rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nv-pr-02-texgen
Patch Set: make more consistent Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13719 matching lines...) Expand 10 before | Expand all | Expand 10 after
13730 uint32_t matrixMode; 13730 uint32_t matrixMode;
13731 }; 13731 };
13732 13732
13733 static_assert(sizeof(MatrixLoadIdentityCHROMIUM) == 8, 13733 static_assert(sizeof(MatrixLoadIdentityCHROMIUM) == 8,
13734 "size of MatrixLoadIdentityCHROMIUM should be 8"); 13734 "size of MatrixLoadIdentityCHROMIUM should be 8");
13735 static_assert(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, 13735 static_assert(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0,
13736 "offset of MatrixLoadIdentityCHROMIUM header should be 0"); 13736 "offset of MatrixLoadIdentityCHROMIUM header should be 0");
13737 static_assert(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, 13737 static_assert(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4,
13738 "offset of MatrixLoadIdentityCHROMIUM matrixMode should be 4"); 13738 "offset of MatrixLoadIdentityCHROMIUM matrixMode should be 4");
13739 13739
13740 struct GenPathsCHROMIUM {
13741 typedef GenPathsCHROMIUM ValueType;
13742 static const CommandId kCmdId = kGenPathsCHROMIUM;
13743 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13744 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13745
13746 static uint32_t ComputeSize() {
13747 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13748 }
13749
13750 void SetHeader() { header.SetCmd<ValueType>(); }
13751
13752 void Init(GLuint _first_client_id, GLsizei _range) {
13753 SetHeader();
13754 first_client_id = _first_client_id;
13755 range = _range;
13756 }
13757
13758 void* Set(void* cmd, GLuint _first_client_id, GLsizei _range) {
13759 static_cast<ValueType*>(cmd)->Init(_first_client_id, _range);
13760 return NextCmdAddress<ValueType>(cmd);
13761 }
13762
13763 gpu::CommandHeader header;
13764 uint32_t first_client_id;
13765 int32_t range;
13766 };
13767
13768 static_assert(sizeof(GenPathsCHROMIUM) == 12,
13769 "size of GenPathsCHROMIUM should be 12");
13770 static_assert(offsetof(GenPathsCHROMIUM, header) == 0,
13771 "offset of GenPathsCHROMIUM header should be 0");
13772 static_assert(offsetof(GenPathsCHROMIUM, first_client_id) == 4,
13773 "offset of GenPathsCHROMIUM first_client_id should be 4");
13774 static_assert(offsetof(GenPathsCHROMIUM, range) == 8,
13775 "offset of GenPathsCHROMIUM range should be 8");
13776
13777 struct DeletePathsCHROMIUM {
13778 typedef DeletePathsCHROMIUM ValueType;
13779 static const CommandId kCmdId = kDeletePathsCHROMIUM;
13780 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13781 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13782
13783 static uint32_t ComputeSize() {
13784 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13785 }
13786
13787 void SetHeader() { header.SetCmd<ValueType>(); }
13788
13789 void Init(GLuint _first_client_id, GLsizei _range) {
13790 SetHeader();
13791 first_client_id = _first_client_id;
13792 range = _range;
13793 }
13794
13795 void* Set(void* cmd, GLuint _first_client_id, GLsizei _range) {
13796 static_cast<ValueType*>(cmd)->Init(_first_client_id, _range);
13797 return NextCmdAddress<ValueType>(cmd);
13798 }
13799
13800 gpu::CommandHeader header;
13801 uint32_t first_client_id;
13802 int32_t range;
13803 };
13804
13805 static_assert(sizeof(DeletePathsCHROMIUM) == 12,
13806 "size of DeletePathsCHROMIUM should be 12");
13807 static_assert(offsetof(DeletePathsCHROMIUM, header) == 0,
13808 "offset of DeletePathsCHROMIUM header should be 0");
13809 static_assert(offsetof(DeletePathsCHROMIUM, first_client_id) == 4,
13810 "offset of DeletePathsCHROMIUM first_client_id should be 4");
13811 static_assert(offsetof(DeletePathsCHROMIUM, range) == 8,
13812 "offset of DeletePathsCHROMIUM range should be 8");
13813
13814 struct IsPathCHROMIUM {
13815 typedef IsPathCHROMIUM ValueType;
13816 static const CommandId kCmdId = kIsPathCHROMIUM;
13817 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13818 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13819
13820 typedef uint32_t Result;
13821
13822 static uint32_t ComputeSize() {
13823 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13824 }
13825
13826 void SetHeader() { header.SetCmd<ValueType>(); }
13827
13828 void Init(GLuint _path,
13829 uint32_t _result_shm_id,
13830 uint32_t _result_shm_offset) {
13831 SetHeader();
13832 path = _path;
13833 result_shm_id = _result_shm_id;
13834 result_shm_offset = _result_shm_offset;
13835 }
13836
13837 void* Set(void* cmd,
13838 GLuint _path,
13839 uint32_t _result_shm_id,
13840 uint32_t _result_shm_offset) {
13841 static_cast<ValueType*>(cmd)
13842 ->Init(_path, _result_shm_id, _result_shm_offset);
13843 return NextCmdAddress<ValueType>(cmd);
13844 }
13845
13846 gpu::CommandHeader header;
13847 uint32_t path;
13848 uint32_t result_shm_id;
13849 uint32_t result_shm_offset;
13850 };
13851
13852 static_assert(sizeof(IsPathCHROMIUM) == 16,
13853 "size of IsPathCHROMIUM should be 16");
13854 static_assert(offsetof(IsPathCHROMIUM, header) == 0,
13855 "offset of IsPathCHROMIUM header should be 0");
13856 static_assert(offsetof(IsPathCHROMIUM, path) == 4,
13857 "offset of IsPathCHROMIUM path should be 4");
13858 static_assert(offsetof(IsPathCHROMIUM, result_shm_id) == 8,
13859 "offset of IsPathCHROMIUM result_shm_id should be 8");
13860 static_assert(offsetof(IsPathCHROMIUM, result_shm_offset) == 12,
13861 "offset of IsPathCHROMIUM result_shm_offset should be 12");
13862
13863 struct PathCommandsCHROMIUM {
13864 typedef PathCommandsCHROMIUM ValueType;
13865 static const CommandId kCmdId = kPathCommandsCHROMIUM;
13866 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13867 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13868
13869 static uint32_t ComputeSize() {
13870 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13871 }
13872
13873 void SetHeader() { header.SetCmd<ValueType>(); }
13874
13875 void Init(GLuint _path,
13876 GLsizei _numCommands,
13877 uint32_t _commands_shm_id,
13878 uint32_t _commands_shm_offset,
13879 GLsizei _numCoords,
13880 GLenum _coordType,
13881 uint32_t _coords_shm_id,
13882 uint32_t _coords_shm_offset) {
13883 SetHeader();
13884 path = _path;
13885 numCommands = _numCommands;
13886 commands_shm_id = _commands_shm_id;
13887 commands_shm_offset = _commands_shm_offset;
13888 numCoords = _numCoords;
13889 coordType = _coordType;
13890 coords_shm_id = _coords_shm_id;
13891 coords_shm_offset = _coords_shm_offset;
13892 }
13893
13894 void* Set(void* cmd,
13895 GLuint _path,
13896 GLsizei _numCommands,
13897 uint32_t _commands_shm_id,
13898 uint32_t _commands_shm_offset,
13899 GLsizei _numCoords,
13900 GLenum _coordType,
13901 uint32_t _coords_shm_id,
13902 uint32_t _coords_shm_offset) {
13903 static_cast<ValueType*>(cmd)
13904 ->Init(_path, _numCommands, _commands_shm_id, _commands_shm_offset,
13905 _numCoords, _coordType, _coords_shm_id, _coords_shm_offset);
13906 return NextCmdAddress<ValueType>(cmd);
13907 }
13908
13909 gpu::CommandHeader header;
13910 uint32_t path;
13911 int32_t numCommands;
13912 uint32_t commands_shm_id;
13913 uint32_t commands_shm_offset;
13914 int32_t numCoords;
13915 uint32_t coordType;
13916 uint32_t coords_shm_id;
13917 uint32_t coords_shm_offset;
13918 };
13919
13920 static_assert(sizeof(PathCommandsCHROMIUM) == 36,
13921 "size of PathCommandsCHROMIUM should be 36");
13922 static_assert(offsetof(PathCommandsCHROMIUM, header) == 0,
13923 "offset of PathCommandsCHROMIUM header should be 0");
13924 static_assert(offsetof(PathCommandsCHROMIUM, path) == 4,
13925 "offset of PathCommandsCHROMIUM path should be 4");
13926 static_assert(offsetof(PathCommandsCHROMIUM, numCommands) == 8,
13927 "offset of PathCommandsCHROMIUM numCommands should be 8");
13928 static_assert(offsetof(PathCommandsCHROMIUM, commands_shm_id) == 12,
13929 "offset of PathCommandsCHROMIUM commands_shm_id should be 12");
13930 static_assert(
13931 offsetof(PathCommandsCHROMIUM, commands_shm_offset) == 16,
13932 "offset of PathCommandsCHROMIUM commands_shm_offset should be 16");
13933 static_assert(offsetof(PathCommandsCHROMIUM, numCoords) == 20,
13934 "offset of PathCommandsCHROMIUM numCoords should be 20");
13935 static_assert(offsetof(PathCommandsCHROMIUM, coordType) == 24,
13936 "offset of PathCommandsCHROMIUM coordType should be 24");
13937 static_assert(offsetof(PathCommandsCHROMIUM, coords_shm_id) == 28,
13938 "offset of PathCommandsCHROMIUM coords_shm_id should be 28");
13939 static_assert(offsetof(PathCommandsCHROMIUM, coords_shm_offset) == 32,
13940 "offset of PathCommandsCHROMIUM coords_shm_offset should be 32");
13941
13942 struct PathParameterfCHROMIUM {
13943 typedef PathParameterfCHROMIUM ValueType;
13944 static const CommandId kCmdId = kPathParameterfCHROMIUM;
13945 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13946 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13947
13948 static uint32_t ComputeSize() {
13949 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13950 }
13951
13952 void SetHeader() { header.SetCmd<ValueType>(); }
13953
13954 void Init(GLuint _path, GLenum _pname, GLfloat _value) {
13955 SetHeader();
13956 path = _path;
13957 pname = _pname;
13958 value = _value;
13959 }
13960
13961 void* Set(void* cmd, GLuint _path, GLenum _pname, GLfloat _value) {
13962 static_cast<ValueType*>(cmd)->Init(_path, _pname, _value);
13963 return NextCmdAddress<ValueType>(cmd);
13964 }
13965
13966 gpu::CommandHeader header;
13967 uint32_t path;
13968 uint32_t pname;
13969 float value;
13970 };
13971
13972 static_assert(sizeof(PathParameterfCHROMIUM) == 16,
13973 "size of PathParameterfCHROMIUM should be 16");
13974 static_assert(offsetof(PathParameterfCHROMIUM, header) == 0,
13975 "offset of PathParameterfCHROMIUM header should be 0");
13976 static_assert(offsetof(PathParameterfCHROMIUM, path) == 4,
13977 "offset of PathParameterfCHROMIUM path should be 4");
13978 static_assert(offsetof(PathParameterfCHROMIUM, pname) == 8,
13979 "offset of PathParameterfCHROMIUM pname should be 8");
13980 static_assert(offsetof(PathParameterfCHROMIUM, value) == 12,
13981 "offset of PathParameterfCHROMIUM value should be 12");
13982
13983 struct PathParameteriCHROMIUM {
13984 typedef PathParameteriCHROMIUM ValueType;
13985 static const CommandId kCmdId = kPathParameteriCHROMIUM;
13986 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13987 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13988
13989 static uint32_t ComputeSize() {
13990 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13991 }
13992
13993 void SetHeader() { header.SetCmd<ValueType>(); }
13994
13995 void Init(GLuint _path, GLenum _pname, GLint _value) {
13996 SetHeader();
13997 path = _path;
13998 pname = _pname;
13999 value = _value;
14000 }
14001
14002 void* Set(void* cmd, GLuint _path, GLenum _pname, GLint _value) {
14003 static_cast<ValueType*>(cmd)->Init(_path, _pname, _value);
14004 return NextCmdAddress<ValueType>(cmd);
14005 }
14006
14007 gpu::CommandHeader header;
14008 uint32_t path;
14009 uint32_t pname;
14010 int32_t value;
14011 };
14012
14013 static_assert(sizeof(PathParameteriCHROMIUM) == 16,
14014 "size of PathParameteriCHROMIUM should be 16");
14015 static_assert(offsetof(PathParameteriCHROMIUM, header) == 0,
14016 "offset of PathParameteriCHROMIUM header should be 0");
14017 static_assert(offsetof(PathParameteriCHROMIUM, path) == 4,
14018 "offset of PathParameteriCHROMIUM path should be 4");
14019 static_assert(offsetof(PathParameteriCHROMIUM, pname) == 8,
14020 "offset of PathParameteriCHROMIUM pname should be 8");
14021 static_assert(offsetof(PathParameteriCHROMIUM, value) == 12,
14022 "offset of PathParameteriCHROMIUM value should be 12");
14023
14024 struct PathStencilFuncCHROMIUM {
14025 typedef PathStencilFuncCHROMIUM ValueType;
14026 static const CommandId kCmdId = kPathStencilFuncCHROMIUM;
14027 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
14028 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
14029
14030 static uint32_t ComputeSize() {
14031 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
14032 }
14033
14034 void SetHeader() { header.SetCmd<ValueType>(); }
14035
14036 void Init(GLenum _func, GLint _ref, GLuint _mask) {
14037 SetHeader();
14038 func = _func;
14039 ref = _ref;
14040 mask = _mask;
14041 }
14042
14043 void* Set(void* cmd, GLenum _func, GLint _ref, GLuint _mask) {
14044 static_cast<ValueType*>(cmd)->Init(_func, _ref, _mask);
14045 return NextCmdAddress<ValueType>(cmd);
14046 }
14047
14048 gpu::CommandHeader header;
14049 uint32_t func;
14050 int32_t ref;
14051 uint32_t mask;
14052 };
14053
14054 static_assert(sizeof(PathStencilFuncCHROMIUM) == 16,
14055 "size of PathStencilFuncCHROMIUM should be 16");
14056 static_assert(offsetof(PathStencilFuncCHROMIUM, header) == 0,
14057 "offset of PathStencilFuncCHROMIUM header should be 0");
14058 static_assert(offsetof(PathStencilFuncCHROMIUM, func) == 4,
14059 "offset of PathStencilFuncCHROMIUM func should be 4");
14060 static_assert(offsetof(PathStencilFuncCHROMIUM, ref) == 8,
14061 "offset of PathStencilFuncCHROMIUM ref should be 8");
14062 static_assert(offsetof(PathStencilFuncCHROMIUM, mask) == 12,
14063 "offset of PathStencilFuncCHROMIUM mask should be 12");
14064
14065 struct StencilFillPathCHROMIUM {
14066 typedef StencilFillPathCHROMIUM ValueType;
14067 static const CommandId kCmdId = kStencilFillPathCHROMIUM;
14068 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
14069 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
14070
14071 static uint32_t ComputeSize() {
14072 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
14073 }
14074
14075 void SetHeader() { header.SetCmd<ValueType>(); }
14076
14077 void Init(GLuint _path, GLenum _fillMode, GLuint _mask) {
14078 SetHeader();
14079 path = _path;
14080 fillMode = _fillMode;
14081 mask = _mask;
14082 }
14083
14084 void* Set(void* cmd, GLuint _path, GLenum _fillMode, GLuint _mask) {
14085 static_cast<ValueType*>(cmd)->Init(_path, _fillMode, _mask);
14086 return NextCmdAddress<ValueType>(cmd);
14087 }
14088
14089 gpu::CommandHeader header;
14090 uint32_t path;
14091 uint32_t fillMode;
14092 uint32_t mask;
14093 };
14094
14095 static_assert(sizeof(StencilFillPathCHROMIUM) == 16,
14096 "size of StencilFillPathCHROMIUM should be 16");
14097 static_assert(offsetof(StencilFillPathCHROMIUM, header) == 0,
14098 "offset of StencilFillPathCHROMIUM header should be 0");
14099 static_assert(offsetof(StencilFillPathCHROMIUM, path) == 4,
14100 "offset of StencilFillPathCHROMIUM path should be 4");
14101 static_assert(offsetof(StencilFillPathCHROMIUM, fillMode) == 8,
14102 "offset of StencilFillPathCHROMIUM fillMode should be 8");
14103 static_assert(offsetof(StencilFillPathCHROMIUM, mask) == 12,
14104 "offset of StencilFillPathCHROMIUM mask should be 12");
14105
14106 struct StencilStrokePathCHROMIUM {
14107 typedef StencilStrokePathCHROMIUM ValueType;
14108 static const CommandId kCmdId = kStencilStrokePathCHROMIUM;
14109 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
14110 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
14111
14112 static uint32_t ComputeSize() {
14113 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
14114 }
14115
14116 void SetHeader() { header.SetCmd<ValueType>(); }
14117
14118 void Init(GLuint _path, GLint _reference, GLuint _mask) {
14119 SetHeader();
14120 path = _path;
14121 reference = _reference;
14122 mask = _mask;
14123 }
14124
14125 void* Set(void* cmd, GLuint _path, GLint _reference, GLuint _mask) {
14126 static_cast<ValueType*>(cmd)->Init(_path, _reference, _mask);
14127 return NextCmdAddress<ValueType>(cmd);
14128 }
14129
14130 gpu::CommandHeader header;
14131 uint32_t path;
14132 int32_t reference;
14133 uint32_t mask;
14134 };
14135
14136 static_assert(sizeof(StencilStrokePathCHROMIUM) == 16,
14137 "size of StencilStrokePathCHROMIUM should be 16");
14138 static_assert(offsetof(StencilStrokePathCHROMIUM, header) == 0,
14139 "offset of StencilStrokePathCHROMIUM header should be 0");
14140 static_assert(offsetof(StencilStrokePathCHROMIUM, path) == 4,
14141 "offset of StencilStrokePathCHROMIUM path should be 4");
14142 static_assert(offsetof(StencilStrokePathCHROMIUM, reference) == 8,
14143 "offset of StencilStrokePathCHROMIUM reference should be 8");
14144 static_assert(offsetof(StencilStrokePathCHROMIUM, mask) == 12,
14145 "offset of StencilStrokePathCHROMIUM mask should be 12");
14146
14147 struct CoverFillPathCHROMIUM {
14148 typedef CoverFillPathCHROMIUM ValueType;
14149 static const CommandId kCmdId = kCoverFillPathCHROMIUM;
14150 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
14151 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
14152
14153 static uint32_t ComputeSize() {
14154 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
14155 }
14156
14157 void SetHeader() { header.SetCmd<ValueType>(); }
14158
14159 void Init(GLuint _path, GLenum _coverMode) {
14160 SetHeader();
14161 path = _path;
14162 coverMode = _coverMode;
14163 }
14164
14165 void* Set(void* cmd, GLuint _path, GLenum _coverMode) {
14166 static_cast<ValueType*>(cmd)->Init(_path, _coverMode);
14167 return NextCmdAddress<ValueType>(cmd);
14168 }
14169
14170 gpu::CommandHeader header;
14171 uint32_t path;
14172 uint32_t coverMode;
14173 };
14174
14175 static_assert(sizeof(CoverFillPathCHROMIUM) == 12,
14176 "size of CoverFillPathCHROMIUM should be 12");
14177 static_assert(offsetof(CoverFillPathCHROMIUM, header) == 0,
14178 "offset of CoverFillPathCHROMIUM header should be 0");
14179 static_assert(offsetof(CoverFillPathCHROMIUM, path) == 4,
14180 "offset of CoverFillPathCHROMIUM path should be 4");
14181 static_assert(offsetof(CoverFillPathCHROMIUM, coverMode) == 8,
14182 "offset of CoverFillPathCHROMIUM coverMode should be 8");
14183
14184 struct CoverStrokePathCHROMIUM {
14185 typedef CoverStrokePathCHROMIUM ValueType;
14186 static const CommandId kCmdId = kCoverStrokePathCHROMIUM;
14187 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
14188 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
14189
14190 static uint32_t ComputeSize() {
14191 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
14192 }
14193
14194 void SetHeader() { header.SetCmd<ValueType>(); }
14195
14196 void Init(GLuint _path, GLenum _coverMode) {
14197 SetHeader();
14198 path = _path;
14199 coverMode = _coverMode;
14200 }
14201
14202 void* Set(void* cmd, GLuint _path, GLenum _coverMode) {
14203 static_cast<ValueType*>(cmd)->Init(_path, _coverMode);
14204 return NextCmdAddress<ValueType>(cmd);
14205 }
14206
14207 gpu::CommandHeader header;
14208 uint32_t path;
14209 uint32_t coverMode;
14210 };
14211
14212 static_assert(sizeof(CoverStrokePathCHROMIUM) == 12,
14213 "size of CoverStrokePathCHROMIUM should be 12");
14214 static_assert(offsetof(CoverStrokePathCHROMIUM, header) == 0,
14215 "offset of CoverStrokePathCHROMIUM header should be 0");
14216 static_assert(offsetof(CoverStrokePathCHROMIUM, path) == 4,
14217 "offset of CoverStrokePathCHROMIUM path should be 4");
14218 static_assert(offsetof(CoverStrokePathCHROMIUM, coverMode) == 8,
14219 "offset of CoverStrokePathCHROMIUM coverMode should be 8");
14220
14221 struct StencilThenCoverFillPathCHROMIUM {
14222 typedef StencilThenCoverFillPathCHROMIUM ValueType;
14223 static const CommandId kCmdId = kStencilThenCoverFillPathCHROMIUM;
14224 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
14225 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
14226
14227 static uint32_t ComputeSize() {
14228 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
14229 }
14230
14231 void SetHeader() { header.SetCmd<ValueType>(); }
14232
14233 void Init(GLuint _path, GLenum _fillMode, GLuint _mask, GLenum _coverMode) {
14234 SetHeader();
14235 path = _path;
14236 fillMode = _fillMode;
14237 mask = _mask;
14238 coverMode = _coverMode;
14239 }
14240
14241 void* Set(void* cmd,
14242 GLuint _path,
14243 GLenum _fillMode,
14244 GLuint _mask,
14245 GLenum _coverMode) {
14246 static_cast<ValueType*>(cmd)->Init(_path, _fillMode, _mask, _coverMode);
14247 return NextCmdAddress<ValueType>(cmd);
14248 }
14249
14250 gpu::CommandHeader header;
14251 uint32_t path;
14252 uint32_t fillMode;
14253 uint32_t mask;
14254 uint32_t coverMode;
14255 };
14256
14257 static_assert(sizeof(StencilThenCoverFillPathCHROMIUM) == 20,
14258 "size of StencilThenCoverFillPathCHROMIUM should be 20");
14259 static_assert(offsetof(StencilThenCoverFillPathCHROMIUM, header) == 0,
14260 "offset of StencilThenCoverFillPathCHROMIUM header should be 0");
14261 static_assert(offsetof(StencilThenCoverFillPathCHROMIUM, path) == 4,
14262 "offset of StencilThenCoverFillPathCHROMIUM path should be 4");
14263 static_assert(
14264 offsetof(StencilThenCoverFillPathCHROMIUM, fillMode) == 8,
14265 "offset of StencilThenCoverFillPathCHROMIUM fillMode should be 8");
14266 static_assert(offsetof(StencilThenCoverFillPathCHROMIUM, mask) == 12,
14267 "offset of StencilThenCoverFillPathCHROMIUM mask should be 12");
14268 static_assert(
14269 offsetof(StencilThenCoverFillPathCHROMIUM, coverMode) == 16,
14270 "offset of StencilThenCoverFillPathCHROMIUM coverMode should be 16");
14271
14272 struct StencilThenCoverStrokePathCHROMIUM {
14273 typedef StencilThenCoverStrokePathCHROMIUM ValueType;
14274 static const CommandId kCmdId = kStencilThenCoverStrokePathCHROMIUM;
14275 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
14276 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
14277
14278 static uint32_t ComputeSize() {
14279 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
14280 }
14281
14282 void SetHeader() { header.SetCmd<ValueType>(); }
14283
14284 void Init(GLuint _path, GLint _reference, GLuint _mask, GLenum _coverMode) {
14285 SetHeader();
14286 path = _path;
14287 reference = _reference;
14288 mask = _mask;
14289 coverMode = _coverMode;
14290 }
14291
14292 void* Set(void* cmd,
14293 GLuint _path,
14294 GLint _reference,
14295 GLuint _mask,
14296 GLenum _coverMode) {
14297 static_cast<ValueType*>(cmd)->Init(_path, _reference, _mask, _coverMode);
14298 return NextCmdAddress<ValueType>(cmd);
14299 }
14300
14301 gpu::CommandHeader header;
14302 uint32_t path;
14303 int32_t reference;
14304 uint32_t mask;
14305 uint32_t coverMode;
14306 };
14307
14308 static_assert(sizeof(StencilThenCoverStrokePathCHROMIUM) == 20,
14309 "size of StencilThenCoverStrokePathCHROMIUM should be 20");
14310 static_assert(
14311 offsetof(StencilThenCoverStrokePathCHROMIUM, header) == 0,
14312 "offset of StencilThenCoverStrokePathCHROMIUM header should be 0");
14313 static_assert(offsetof(StencilThenCoverStrokePathCHROMIUM, path) == 4,
14314 "offset of StencilThenCoverStrokePathCHROMIUM path should be 4");
14315 static_assert(
14316 offsetof(StencilThenCoverStrokePathCHROMIUM, reference) == 8,
14317 "offset of StencilThenCoverStrokePathCHROMIUM reference should be 8");
14318 static_assert(offsetof(StencilThenCoverStrokePathCHROMIUM, mask) == 12,
14319 "offset of StencilThenCoverStrokePathCHROMIUM mask should be 12");
14320 static_assert(
14321 offsetof(StencilThenCoverStrokePathCHROMIUM, coverMode) == 16,
14322 "offset of StencilThenCoverStrokePathCHROMIUM coverMode should be 16");
14323
13740 struct BlendBarrierKHR { 14324 struct BlendBarrierKHR {
13741 typedef BlendBarrierKHR ValueType; 14325 typedef BlendBarrierKHR ValueType;
13742 static const CommandId kCmdId = kBlendBarrierKHR; 14326 static const CommandId kCmdId = kBlendBarrierKHR;
13743 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 14327 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13744 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 14328 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13745 14329
13746 static uint32_t ComputeSize() { 14330 static uint32_t ComputeSize() {
13747 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 14331 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13748 } 14332 }
13749 14333
13750 void SetHeader() { header.SetCmd<ValueType>(); } 14334 void SetHeader() { header.SetCmd<ValueType>(); }
13751 14335
13752 void Init() { SetHeader(); } 14336 void Init() { SetHeader(); }
13753 14337
13754 void* Set(void* cmd) { 14338 void* Set(void* cmd) {
13755 static_cast<ValueType*>(cmd)->Init(); 14339 static_cast<ValueType*>(cmd)->Init();
13756 return NextCmdAddress<ValueType>(cmd); 14340 return NextCmdAddress<ValueType>(cmd);
13757 } 14341 }
13758 14342
13759 gpu::CommandHeader header; 14343 gpu::CommandHeader header;
13760 }; 14344 };
13761 14345
13762 static_assert(sizeof(BlendBarrierKHR) == 4, 14346 static_assert(sizeof(BlendBarrierKHR) == 4,
13763 "size of BlendBarrierKHR should be 4"); 14347 "size of BlendBarrierKHR should be 4");
13764 static_assert(offsetof(BlendBarrierKHR, header) == 0, 14348 static_assert(offsetof(BlendBarrierKHR, header) == 0,
13765 "offset of BlendBarrierKHR header should be 0"); 14349 "offset of BlendBarrierKHR header should be 0");
13766 14350
13767 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 14351 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698