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

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: rebase and cleanup ids Created 6 years, 2 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 8996 matching lines...) Expand 10 before | Expand all | Expand 10 after
9007 uint32_t matrixMode; 9007 uint32_t matrixMode;
9008 }; 9008 };
9009 9009
9010 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8, 9010 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8,
9011 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8); 9011 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8);
9012 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, 9012 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0,
9013 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0); 9013 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0);
9014 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, 9014 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4,
9015 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4); 9015 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4);
9016 9016
9017 struct GenPathsCHROMIUM {
9018 typedef GenPathsCHROMIUM ValueType;
9019 static const CommandId kCmdId = kGenPathsCHROMIUM;
9020 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9021 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9022
9023 static uint32_t ComputeSize() {
9024 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9025 }
9026
9027 void SetHeader() { header.SetCmd<ValueType>(); }
9028
9029 void Init(GLuint _first_client_id, GLsizei _range) {
9030 SetHeader();
9031 first_client_id = _first_client_id;
9032 range = _range;
9033 }
9034
9035 void* Set(void* cmd, GLuint _first_client_id, GLsizei _range) {
9036 static_cast<ValueType*>(cmd)->Init(_first_client_id, _range);
9037 return NextCmdAddress<ValueType>(cmd);
9038 }
9039
9040 gpu::CommandHeader header;
9041 uint32_t first_client_id;
9042 int32_t range;
9043 };
9044
9045 COMPILE_ASSERT(sizeof(GenPathsCHROMIUM) == 12,
9046 Sizeof_GenPathsCHROMIUM_is_not_12);
9047 COMPILE_ASSERT(offsetof(GenPathsCHROMIUM, header) == 0,
9048 OffsetOf_GenPathsCHROMIUM_header_not_0);
9049 COMPILE_ASSERT(offsetof(GenPathsCHROMIUM, first_client_id) == 4,
9050 OffsetOf_GenPathsCHROMIUM_first_client_id_not_4);
9051 COMPILE_ASSERT(offsetof(GenPathsCHROMIUM, range) == 8,
9052 OffsetOf_GenPathsCHROMIUM_range_not_8);
9053
9054 struct DeletePathsCHROMIUM {
9055 typedef DeletePathsCHROMIUM ValueType;
9056 static const CommandId kCmdId = kDeletePathsCHROMIUM;
9057 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9058 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9059
9060 static uint32_t ComputeSize() {
9061 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9062 }
9063
9064 void SetHeader() { header.SetCmd<ValueType>(); }
9065
9066 void Init(GLuint _first_client_id, GLsizei _range) {
9067 SetHeader();
9068 first_client_id = _first_client_id;
9069 range = _range;
9070 }
9071
9072 void* Set(void* cmd, GLuint _first_client_id, GLsizei _range) {
9073 static_cast<ValueType*>(cmd)->Init(_first_client_id, _range);
9074 return NextCmdAddress<ValueType>(cmd);
9075 }
9076
9077 gpu::CommandHeader header;
9078 uint32_t first_client_id;
9079 int32_t range;
9080 };
9081
9082 COMPILE_ASSERT(sizeof(DeletePathsCHROMIUM) == 12,
9083 Sizeof_DeletePathsCHROMIUM_is_not_12);
9084 COMPILE_ASSERT(offsetof(DeletePathsCHROMIUM, header) == 0,
9085 OffsetOf_DeletePathsCHROMIUM_header_not_0);
9086 COMPILE_ASSERT(offsetof(DeletePathsCHROMIUM, first_client_id) == 4,
9087 OffsetOf_DeletePathsCHROMIUM_first_client_id_not_4);
9088 COMPILE_ASSERT(offsetof(DeletePathsCHROMIUM, range) == 8,
9089 OffsetOf_DeletePathsCHROMIUM_range_not_8);
9090
9091 struct IsPathCHROMIUM {
9092 typedef IsPathCHROMIUM ValueType;
9093 static const CommandId kCmdId = kIsPathCHROMIUM;
9094 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9095 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9096
9097 typedef uint32_t Result;
9098
9099 static uint32_t ComputeSize() {
9100 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9101 }
9102
9103 void SetHeader() { header.SetCmd<ValueType>(); }
9104
9105 void Init(GLuint _path,
9106 uint32_t _result_shm_id,
9107 uint32_t _result_shm_offset) {
9108 SetHeader();
9109 path = _path;
9110 result_shm_id = _result_shm_id;
9111 result_shm_offset = _result_shm_offset;
9112 }
9113
9114 void* Set(void* cmd,
9115 GLuint _path,
9116 uint32_t _result_shm_id,
9117 uint32_t _result_shm_offset) {
9118 static_cast<ValueType*>(cmd)
9119 ->Init(_path, _result_shm_id, _result_shm_offset);
9120 return NextCmdAddress<ValueType>(cmd);
9121 }
9122
9123 gpu::CommandHeader header;
9124 uint32_t path;
9125 uint32_t result_shm_id;
9126 uint32_t result_shm_offset;
9127 };
9128
9129 COMPILE_ASSERT(sizeof(IsPathCHROMIUM) == 16, Sizeof_IsPathCHROMIUM_is_not_16);
9130 COMPILE_ASSERT(offsetof(IsPathCHROMIUM, header) == 0,
9131 OffsetOf_IsPathCHROMIUM_header_not_0);
9132 COMPILE_ASSERT(offsetof(IsPathCHROMIUM, path) == 4,
9133 OffsetOf_IsPathCHROMIUM_path_not_4);
9134 COMPILE_ASSERT(offsetof(IsPathCHROMIUM, result_shm_id) == 8,
9135 OffsetOf_IsPathCHROMIUM_result_shm_id_not_8);
9136 COMPILE_ASSERT(offsetof(IsPathCHROMIUM, result_shm_offset) == 12,
9137 OffsetOf_IsPathCHROMIUM_result_shm_offset_not_12);
9138
9139 struct PathCommandsCHROMIUM {
9140 typedef PathCommandsCHROMIUM ValueType;
9141 static const CommandId kCmdId = kPathCommandsCHROMIUM;
9142 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9143 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9144
9145 static uint32_t ComputeSize() {
9146 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9147 }
9148
9149 void SetHeader() { header.SetCmd<ValueType>(); }
9150
9151 void Init(GLuint _path,
9152 GLsizei _numCommands,
9153 uint32_t _commands_shm_id,
9154 uint32_t _commands_shm_offset,
9155 GLsizei _numCoords,
9156 uint32_t _coords_shm_id,
9157 uint32_t _coords_shm_offset) {
9158 SetHeader();
9159 path = _path;
9160 numCommands = _numCommands;
9161 commands_shm_id = _commands_shm_id;
9162 commands_shm_offset = _commands_shm_offset;
9163 numCoords = _numCoords;
9164 coords_shm_id = _coords_shm_id;
9165 coords_shm_offset = _coords_shm_offset;
9166 }
9167
9168 void* Set(void* cmd,
9169 GLuint _path,
9170 GLsizei _numCommands,
9171 uint32_t _commands_shm_id,
9172 uint32_t _commands_shm_offset,
9173 GLsizei _numCoords,
9174 uint32_t _coords_shm_id,
9175 uint32_t _coords_shm_offset) {
9176 static_cast<ValueType*>(cmd)->Init(_path,
9177 _numCommands,
9178 _commands_shm_id,
9179 _commands_shm_offset,
9180 _numCoords,
9181 _coords_shm_id,
9182 _coords_shm_offset);
9183 return NextCmdAddress<ValueType>(cmd);
9184 }
9185
9186 gpu::CommandHeader header;
9187 uint32_t path;
9188 int32_t numCommands;
9189 uint32_t commands_shm_id;
9190 uint32_t commands_shm_offset;
9191 int32_t numCoords;
9192 uint32_t coords_shm_id;
9193 uint32_t coords_shm_offset;
9194 };
9195
9196 COMPILE_ASSERT(sizeof(PathCommandsCHROMIUM) == 32,
9197 Sizeof_PathCommandsCHROMIUM_is_not_32);
9198 COMPILE_ASSERT(offsetof(PathCommandsCHROMIUM, header) == 0,
9199 OffsetOf_PathCommandsCHROMIUM_header_not_0);
9200 COMPILE_ASSERT(offsetof(PathCommandsCHROMIUM, path) == 4,
9201 OffsetOf_PathCommandsCHROMIUM_path_not_4);
9202 COMPILE_ASSERT(offsetof(PathCommandsCHROMIUM, numCommands) == 8,
9203 OffsetOf_PathCommandsCHROMIUM_numCommands_not_8);
9204 COMPILE_ASSERT(offsetof(PathCommandsCHROMIUM, commands_shm_id) == 12,
9205 OffsetOf_PathCommandsCHROMIUM_commands_shm_id_not_12);
9206 COMPILE_ASSERT(offsetof(PathCommandsCHROMIUM, commands_shm_offset) == 16,
9207 OffsetOf_PathCommandsCHROMIUM_commands_shm_offset_not_16);
9208 COMPILE_ASSERT(offsetof(PathCommandsCHROMIUM, numCoords) == 20,
9209 OffsetOf_PathCommandsCHROMIUM_numCoords_not_20);
9210 COMPILE_ASSERT(offsetof(PathCommandsCHROMIUM, coords_shm_id) == 24,
9211 OffsetOf_PathCommandsCHROMIUM_coords_shm_id_not_24);
9212 COMPILE_ASSERT(offsetof(PathCommandsCHROMIUM, coords_shm_offset) == 28,
9213 OffsetOf_PathCommandsCHROMIUM_coords_shm_offset_not_28);
9214
9215 struct PathParameterfCHROMIUM {
9216 typedef PathParameterfCHROMIUM ValueType;
9217 static const CommandId kCmdId = kPathParameterfCHROMIUM;
9218 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9219 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9220
9221 static uint32_t ComputeSize() {
9222 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9223 }
9224
9225 void SetHeader() { header.SetCmd<ValueType>(); }
9226
9227 void Init(GLuint _path, GLenum _pname, GLfloat _value) {
9228 SetHeader();
9229 path = _path;
9230 pname = _pname;
9231 value = _value;
9232 }
9233
9234 void* Set(void* cmd, GLuint _path, GLenum _pname, GLfloat _value) {
9235 static_cast<ValueType*>(cmd)->Init(_path, _pname, _value);
9236 return NextCmdAddress<ValueType>(cmd);
9237 }
9238
9239 gpu::CommandHeader header;
9240 uint32_t path;
9241 uint32_t pname;
9242 float value;
9243 };
9244
9245 COMPILE_ASSERT(sizeof(PathParameterfCHROMIUM) == 16,
9246 Sizeof_PathParameterfCHROMIUM_is_not_16);
9247 COMPILE_ASSERT(offsetof(PathParameterfCHROMIUM, header) == 0,
9248 OffsetOf_PathParameterfCHROMIUM_header_not_0);
9249 COMPILE_ASSERT(offsetof(PathParameterfCHROMIUM, path) == 4,
9250 OffsetOf_PathParameterfCHROMIUM_path_not_4);
9251 COMPILE_ASSERT(offsetof(PathParameterfCHROMIUM, pname) == 8,
9252 OffsetOf_PathParameterfCHROMIUM_pname_not_8);
9253 COMPILE_ASSERT(offsetof(PathParameterfCHROMIUM, value) == 12,
9254 OffsetOf_PathParameterfCHROMIUM_value_not_12);
9255
9256 struct PathParameteriCHROMIUM {
9257 typedef PathParameteriCHROMIUM ValueType;
9258 static const CommandId kCmdId = kPathParameteriCHROMIUM;
9259 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9260 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9261
9262 static uint32_t ComputeSize() {
9263 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9264 }
9265
9266 void SetHeader() { header.SetCmd<ValueType>(); }
9267
9268 void Init(GLuint _path, GLenum _pname, GLint _value) {
9269 SetHeader();
9270 path = _path;
9271 pname = _pname;
9272 value = _value;
9273 }
9274
9275 void* Set(void* cmd, GLuint _path, GLenum _pname, GLint _value) {
9276 static_cast<ValueType*>(cmd)->Init(_path, _pname, _value);
9277 return NextCmdAddress<ValueType>(cmd);
9278 }
9279
9280 gpu::CommandHeader header;
9281 uint32_t path;
9282 uint32_t pname;
9283 int32_t value;
9284 };
9285
9286 COMPILE_ASSERT(sizeof(PathParameteriCHROMIUM) == 16,
9287 Sizeof_PathParameteriCHROMIUM_is_not_16);
9288 COMPILE_ASSERT(offsetof(PathParameteriCHROMIUM, header) == 0,
9289 OffsetOf_PathParameteriCHROMIUM_header_not_0);
9290 COMPILE_ASSERT(offsetof(PathParameteriCHROMIUM, path) == 4,
9291 OffsetOf_PathParameteriCHROMIUM_path_not_4);
9292 COMPILE_ASSERT(offsetof(PathParameteriCHROMIUM, pname) == 8,
9293 OffsetOf_PathParameteriCHROMIUM_pname_not_8);
9294 COMPILE_ASSERT(offsetof(PathParameteriCHROMIUM, value) == 12,
9295 OffsetOf_PathParameteriCHROMIUM_value_not_12);
9296
9297 struct PathStencilFuncCHROMIUM {
9298 typedef PathStencilFuncCHROMIUM ValueType;
9299 static const CommandId kCmdId = kPathStencilFuncCHROMIUM;
9300 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9301 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9302
9303 static uint32_t ComputeSize() {
9304 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9305 }
9306
9307 void SetHeader() { header.SetCmd<ValueType>(); }
9308
9309 void Init(GLenum _func, GLint _ref, GLuint _mask) {
9310 SetHeader();
9311 func = _func;
9312 ref = _ref;
9313 mask = _mask;
9314 }
9315
9316 void* Set(void* cmd, GLenum _func, GLint _ref, GLuint _mask) {
9317 static_cast<ValueType*>(cmd)->Init(_func, _ref, _mask);
9318 return NextCmdAddress<ValueType>(cmd);
9319 }
9320
9321 gpu::CommandHeader header;
9322 uint32_t func;
9323 int32_t ref;
9324 uint32_t mask;
9325 };
9326
9327 COMPILE_ASSERT(sizeof(PathStencilFuncCHROMIUM) == 16,
9328 Sizeof_PathStencilFuncCHROMIUM_is_not_16);
9329 COMPILE_ASSERT(offsetof(PathStencilFuncCHROMIUM, header) == 0,
9330 OffsetOf_PathStencilFuncCHROMIUM_header_not_0);
9331 COMPILE_ASSERT(offsetof(PathStencilFuncCHROMIUM, func) == 4,
9332 OffsetOf_PathStencilFuncCHROMIUM_func_not_4);
9333 COMPILE_ASSERT(offsetof(PathStencilFuncCHROMIUM, ref) == 8,
9334 OffsetOf_PathStencilFuncCHROMIUM_ref_not_8);
9335 COMPILE_ASSERT(offsetof(PathStencilFuncCHROMIUM, mask) == 12,
9336 OffsetOf_PathStencilFuncCHROMIUM_mask_not_12);
9337
9338 struct StencilFillPathCHROMIUM {
9339 typedef StencilFillPathCHROMIUM ValueType;
9340 static const CommandId kCmdId = kStencilFillPathCHROMIUM;
9341 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9342 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9343
9344 static uint32_t ComputeSize() {
9345 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9346 }
9347
9348 void SetHeader() { header.SetCmd<ValueType>(); }
9349
9350 void Init(GLuint _path, GLenum _fillMode, GLuint _mask) {
9351 SetHeader();
9352 path = _path;
9353 fillMode = _fillMode;
9354 mask = _mask;
9355 }
9356
9357 void* Set(void* cmd, GLuint _path, GLenum _fillMode, GLuint _mask) {
9358 static_cast<ValueType*>(cmd)->Init(_path, _fillMode, _mask);
9359 return NextCmdAddress<ValueType>(cmd);
9360 }
9361
9362 gpu::CommandHeader header;
9363 uint32_t path;
9364 uint32_t fillMode;
9365 uint32_t mask;
9366 };
9367
9368 COMPILE_ASSERT(sizeof(StencilFillPathCHROMIUM) == 16,
9369 Sizeof_StencilFillPathCHROMIUM_is_not_16);
9370 COMPILE_ASSERT(offsetof(StencilFillPathCHROMIUM, header) == 0,
9371 OffsetOf_StencilFillPathCHROMIUM_header_not_0);
9372 COMPILE_ASSERT(offsetof(StencilFillPathCHROMIUM, path) == 4,
9373 OffsetOf_StencilFillPathCHROMIUM_path_not_4);
9374 COMPILE_ASSERT(offsetof(StencilFillPathCHROMIUM, fillMode) == 8,
9375 OffsetOf_StencilFillPathCHROMIUM_fillMode_not_8);
9376 COMPILE_ASSERT(offsetof(StencilFillPathCHROMIUM, mask) == 12,
9377 OffsetOf_StencilFillPathCHROMIUM_mask_not_12);
9378
9379 struct StencilStrokePathCHROMIUM {
9380 typedef StencilStrokePathCHROMIUM ValueType;
9381 static const CommandId kCmdId = kStencilStrokePathCHROMIUM;
9382 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9383 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9384
9385 static uint32_t ComputeSize() {
9386 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9387 }
9388
9389 void SetHeader() { header.SetCmd<ValueType>(); }
9390
9391 void Init(GLuint _path, GLint _reference, GLuint _mask) {
9392 SetHeader();
9393 path = _path;
9394 reference = _reference;
9395 mask = _mask;
9396 }
9397
9398 void* Set(void* cmd, GLuint _path, GLint _reference, GLuint _mask) {
9399 static_cast<ValueType*>(cmd)->Init(_path, _reference, _mask);
9400 return NextCmdAddress<ValueType>(cmd);
9401 }
9402
9403 gpu::CommandHeader header;
9404 uint32_t path;
9405 int32_t reference;
9406 uint32_t mask;
9407 };
9408
9409 COMPILE_ASSERT(sizeof(StencilStrokePathCHROMIUM) == 16,
9410 Sizeof_StencilStrokePathCHROMIUM_is_not_16);
9411 COMPILE_ASSERT(offsetof(StencilStrokePathCHROMIUM, header) == 0,
9412 OffsetOf_StencilStrokePathCHROMIUM_header_not_0);
9413 COMPILE_ASSERT(offsetof(StencilStrokePathCHROMIUM, path) == 4,
9414 OffsetOf_StencilStrokePathCHROMIUM_path_not_4);
9415 COMPILE_ASSERT(offsetof(StencilStrokePathCHROMIUM, reference) == 8,
9416 OffsetOf_StencilStrokePathCHROMIUM_reference_not_8);
9417 COMPILE_ASSERT(offsetof(StencilStrokePathCHROMIUM, mask) == 12,
9418 OffsetOf_StencilStrokePathCHROMIUM_mask_not_12);
9419
9420 struct CoverFillPathCHROMIUM {
9421 typedef CoverFillPathCHROMIUM ValueType;
9422 static const CommandId kCmdId = kCoverFillPathCHROMIUM;
9423 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9424 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9425
9426 static uint32_t ComputeSize() {
9427 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9428 }
9429
9430 void SetHeader() { header.SetCmd<ValueType>(); }
9431
9432 void Init(GLuint _path) {
9433 SetHeader();
9434 path = _path;
9435 }
9436
9437 void* Set(void* cmd, GLuint _path) {
9438 static_cast<ValueType*>(cmd)->Init(_path);
9439 return NextCmdAddress<ValueType>(cmd);
9440 }
9441
9442 gpu::CommandHeader header;
9443 uint32_t path;
9444 };
9445
9446 COMPILE_ASSERT(sizeof(CoverFillPathCHROMIUM) == 8,
9447 Sizeof_CoverFillPathCHROMIUM_is_not_8);
9448 COMPILE_ASSERT(offsetof(CoverFillPathCHROMIUM, header) == 0,
9449 OffsetOf_CoverFillPathCHROMIUM_header_not_0);
9450 COMPILE_ASSERT(offsetof(CoverFillPathCHROMIUM, path) == 4,
9451 OffsetOf_CoverFillPathCHROMIUM_path_not_4);
9452
9453 struct CoverStrokePathCHROMIUM {
9454 typedef CoverStrokePathCHROMIUM ValueType;
9455 static const CommandId kCmdId = kCoverStrokePathCHROMIUM;
9456 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9457 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9458
9459 static uint32_t ComputeSize() {
9460 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9461 }
9462
9463 void SetHeader() { header.SetCmd<ValueType>(); }
9464
9465 void Init(GLuint _path) {
9466 SetHeader();
9467 path = _path;
9468 }
9469
9470 void* Set(void* cmd, GLuint _path) {
9471 static_cast<ValueType*>(cmd)->Init(_path);
9472 return NextCmdAddress<ValueType>(cmd);
9473 }
9474
9475 gpu::CommandHeader header;
9476 uint32_t path;
9477 };
9478
9479 COMPILE_ASSERT(sizeof(CoverStrokePathCHROMIUM) == 8,
9480 Sizeof_CoverStrokePathCHROMIUM_is_not_8);
9481 COMPILE_ASSERT(offsetof(CoverStrokePathCHROMIUM, header) == 0,
9482 OffsetOf_CoverStrokePathCHROMIUM_header_not_0);
9483 COMPILE_ASSERT(offsetof(CoverStrokePathCHROMIUM, path) == 4,
9484 OffsetOf_CoverStrokePathCHROMIUM_path_not_4);
9485
9486 struct StencilThenCoverFillPathCHROMIUM {
9487 typedef StencilThenCoverFillPathCHROMIUM ValueType;
9488 static const CommandId kCmdId = kStencilThenCoverFillPathCHROMIUM;
9489 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9490 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9491
9492 static uint32_t ComputeSize() {
9493 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9494 }
9495
9496 void SetHeader() { header.SetCmd<ValueType>(); }
9497
9498 void Init(GLuint _path, GLenum _fillMode, GLuint _mask) {
9499 SetHeader();
9500 path = _path;
9501 fillMode = _fillMode;
9502 mask = _mask;
9503 }
9504
9505 void* Set(void* cmd, GLuint _path, GLenum _fillMode, GLuint _mask) {
9506 static_cast<ValueType*>(cmd)->Init(_path, _fillMode, _mask);
9507 return NextCmdAddress<ValueType>(cmd);
9508 }
9509
9510 gpu::CommandHeader header;
9511 uint32_t path;
9512 uint32_t fillMode;
9513 uint32_t mask;
9514 };
9515
9516 COMPILE_ASSERT(sizeof(StencilThenCoverFillPathCHROMIUM) == 16,
9517 Sizeof_StencilThenCoverFillPathCHROMIUM_is_not_16);
9518 COMPILE_ASSERT(offsetof(StencilThenCoverFillPathCHROMIUM, header) == 0,
9519 OffsetOf_StencilThenCoverFillPathCHROMIUM_header_not_0);
9520 COMPILE_ASSERT(offsetof(StencilThenCoverFillPathCHROMIUM, path) == 4,
9521 OffsetOf_StencilThenCoverFillPathCHROMIUM_path_not_4);
9522 COMPILE_ASSERT(offsetof(StencilThenCoverFillPathCHROMIUM, fillMode) == 8,
9523 OffsetOf_StencilThenCoverFillPathCHROMIUM_fillMode_not_8);
9524 COMPILE_ASSERT(offsetof(StencilThenCoverFillPathCHROMIUM, mask) == 12,
9525 OffsetOf_StencilThenCoverFillPathCHROMIUM_mask_not_12);
9526
9527 struct StencilThenCoverStrokePathCHROMIUM {
9528 typedef StencilThenCoverStrokePathCHROMIUM ValueType;
9529 static const CommandId kCmdId = kStencilThenCoverStrokePathCHROMIUM;
9530 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9531 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9532
9533 static uint32_t ComputeSize() {
9534 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9535 }
9536
9537 void SetHeader() { header.SetCmd<ValueType>(); }
9538
9539 void Init(GLuint _path, GLint _reference, GLuint _mask) {
9540 SetHeader();
9541 path = _path;
9542 reference = _reference;
9543 mask = _mask;
9544 }
9545
9546 void* Set(void* cmd, GLuint _path, GLint _reference, GLuint _mask) {
9547 static_cast<ValueType*>(cmd)->Init(_path, _reference, _mask);
9548 return NextCmdAddress<ValueType>(cmd);
9549 }
9550
9551 gpu::CommandHeader header;
9552 uint32_t path;
9553 int32_t reference;
9554 uint32_t mask;
9555 };
9556
9557 COMPILE_ASSERT(sizeof(StencilThenCoverStrokePathCHROMIUM) == 16,
9558 Sizeof_StencilThenCoverStrokePathCHROMIUM_is_not_16);
9559 COMPILE_ASSERT(offsetof(StencilThenCoverStrokePathCHROMIUM, header) == 0,
9560 OffsetOf_StencilThenCoverStrokePathCHROMIUM_header_not_0);
9561 COMPILE_ASSERT(offsetof(StencilThenCoverStrokePathCHROMIUM, path) == 4,
9562 OffsetOf_StencilThenCoverStrokePathCHROMIUM_path_not_4);
9563 COMPILE_ASSERT(offsetof(StencilThenCoverStrokePathCHROMIUM, reference) == 8,
9564 OffsetOf_StencilThenCoverStrokePathCHROMIUM_reference_not_8);
9565 COMPILE_ASSERT(offsetof(StencilThenCoverStrokePathCHROMIUM, mask) == 12,
9566 OffsetOf_StencilThenCoverStrokePathCHROMIUM_mask_not_12);
9567
9017 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 9568 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698