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 14336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14347 "offset of StencilThenCoverStrokePathCHROMIUM path should be 4"); | 14347 "offset of StencilThenCoverStrokePathCHROMIUM path should be 4"); |
14348 static_assert( | 14348 static_assert( |
14349 offsetof(StencilThenCoverStrokePathCHROMIUM, reference) == 8, | 14349 offsetof(StencilThenCoverStrokePathCHROMIUM, reference) == 8, |
14350 "offset of StencilThenCoverStrokePathCHROMIUM reference should be 8"); | 14350 "offset of StencilThenCoverStrokePathCHROMIUM reference should be 8"); |
14351 static_assert(offsetof(StencilThenCoverStrokePathCHROMIUM, mask) == 12, | 14351 static_assert(offsetof(StencilThenCoverStrokePathCHROMIUM, mask) == 12, |
14352 "offset of StencilThenCoverStrokePathCHROMIUM mask should be 12"); | 14352 "offset of StencilThenCoverStrokePathCHROMIUM mask should be 12"); |
14353 static_assert( | 14353 static_assert( |
14354 offsetof(StencilThenCoverStrokePathCHROMIUM, coverMode) == 16, | 14354 offsetof(StencilThenCoverStrokePathCHROMIUM, coverMode) == 16, |
14355 "offset of StencilThenCoverStrokePathCHROMIUM coverMode should be 16"); | 14355 "offset of StencilThenCoverStrokePathCHROMIUM coverMode should be 16"); |
14356 | 14356 |
| 14357 struct StencilFillPathInstancedCHROMIUM { |
| 14358 typedef StencilFillPathInstancedCHROMIUM ValueType; |
| 14359 static const CommandId kCmdId = kStencilFillPathInstancedCHROMIUM; |
| 14360 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14361 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14362 |
| 14363 static uint32_t ComputeSize() { |
| 14364 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14365 } |
| 14366 |
| 14367 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14368 |
| 14369 void Init(GLsizei _numPaths, |
| 14370 GLenum _pathNameType, |
| 14371 uint32_t _paths_shm_id, |
| 14372 uint32_t _paths_shm_offset, |
| 14373 GLuint _pathBase, |
| 14374 GLenum _fillMode, |
| 14375 GLuint _mask, |
| 14376 GLenum _transformType, |
| 14377 uint32_t _transformValues_shm_id, |
| 14378 uint32_t _transformValues_shm_offset) { |
| 14379 SetHeader(); |
| 14380 numPaths = _numPaths; |
| 14381 pathNameType = _pathNameType; |
| 14382 paths_shm_id = _paths_shm_id; |
| 14383 paths_shm_offset = _paths_shm_offset; |
| 14384 pathBase = _pathBase; |
| 14385 fillMode = _fillMode; |
| 14386 mask = _mask; |
| 14387 transformType = _transformType; |
| 14388 transformValues_shm_id = _transformValues_shm_id; |
| 14389 transformValues_shm_offset = _transformValues_shm_offset; |
| 14390 } |
| 14391 |
| 14392 void* Set(void* cmd, |
| 14393 GLsizei _numPaths, |
| 14394 GLenum _pathNameType, |
| 14395 uint32_t _paths_shm_id, |
| 14396 uint32_t _paths_shm_offset, |
| 14397 GLuint _pathBase, |
| 14398 GLenum _fillMode, |
| 14399 GLuint _mask, |
| 14400 GLenum _transformType, |
| 14401 uint32_t _transformValues_shm_id, |
| 14402 uint32_t _transformValues_shm_offset) { |
| 14403 static_cast<ValueType*>(cmd) |
| 14404 ->Init(_numPaths, _pathNameType, _paths_shm_id, _paths_shm_offset, |
| 14405 _pathBase, _fillMode, _mask, _transformType, |
| 14406 _transformValues_shm_id, _transformValues_shm_offset); |
| 14407 return NextCmdAddress<ValueType>(cmd); |
| 14408 } |
| 14409 |
| 14410 gpu::CommandHeader header; |
| 14411 int32_t numPaths; |
| 14412 uint32_t pathNameType; |
| 14413 uint32_t paths_shm_id; |
| 14414 uint32_t paths_shm_offset; |
| 14415 uint32_t pathBase; |
| 14416 uint32_t fillMode; |
| 14417 uint32_t mask; |
| 14418 uint32_t transformType; |
| 14419 uint32_t transformValues_shm_id; |
| 14420 uint32_t transformValues_shm_offset; |
| 14421 }; |
| 14422 |
| 14423 static_assert(sizeof(StencilFillPathInstancedCHROMIUM) == 44, |
| 14424 "size of StencilFillPathInstancedCHROMIUM should be 44"); |
| 14425 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, header) == 0, |
| 14426 "offset of StencilFillPathInstancedCHROMIUM header should be 0"); |
| 14427 static_assert( |
| 14428 offsetof(StencilFillPathInstancedCHROMIUM, numPaths) == 4, |
| 14429 "offset of StencilFillPathInstancedCHROMIUM numPaths should be 4"); |
| 14430 static_assert( |
| 14431 offsetof(StencilFillPathInstancedCHROMIUM, pathNameType) == 8, |
| 14432 "offset of StencilFillPathInstancedCHROMIUM pathNameType should be 8"); |
| 14433 static_assert( |
| 14434 offsetof(StencilFillPathInstancedCHROMIUM, paths_shm_id) == 12, |
| 14435 "offset of StencilFillPathInstancedCHROMIUM paths_shm_id should be 12"); |
| 14436 static_assert( |
| 14437 offsetof(StencilFillPathInstancedCHROMIUM, paths_shm_offset) == 16, |
| 14438 "offset of StencilFillPathInstancedCHROMIUM paths_shm_offset should be 16"); |
| 14439 static_assert( |
| 14440 offsetof(StencilFillPathInstancedCHROMIUM, pathBase) == 20, |
| 14441 "offset of StencilFillPathInstancedCHROMIUM pathBase should be 20"); |
| 14442 static_assert( |
| 14443 offsetof(StencilFillPathInstancedCHROMIUM, fillMode) == 24, |
| 14444 "offset of StencilFillPathInstancedCHROMIUM fillMode should be 24"); |
| 14445 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, mask) == 28, |
| 14446 "offset of StencilFillPathInstancedCHROMIUM mask should be 28"); |
| 14447 static_assert( |
| 14448 offsetof(StencilFillPathInstancedCHROMIUM, transformType) == 32, |
| 14449 "offset of StencilFillPathInstancedCHROMIUM transformType should be 32"); |
| 14450 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, |
| 14451 transformValues_shm_id) == 36, |
| 14452 "offset of StencilFillPathInstancedCHROMIUM " |
| 14453 "transformValues_shm_id should be 36"); |
| 14454 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, |
| 14455 transformValues_shm_offset) == 40, |
| 14456 "offset of StencilFillPathInstancedCHROMIUM " |
| 14457 "transformValues_shm_offset should be 40"); |
| 14458 |
| 14459 struct StencilStrokePathInstancedCHROMIUM { |
| 14460 typedef StencilStrokePathInstancedCHROMIUM ValueType; |
| 14461 static const CommandId kCmdId = kStencilStrokePathInstancedCHROMIUM; |
| 14462 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14463 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14464 |
| 14465 static uint32_t ComputeSize() { |
| 14466 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14467 } |
| 14468 |
| 14469 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14470 |
| 14471 void Init(GLsizei _numPaths, |
| 14472 GLenum _pathNameType, |
| 14473 uint32_t _paths_shm_id, |
| 14474 uint32_t _paths_shm_offset, |
| 14475 GLuint _pathBase, |
| 14476 GLint _reference, |
| 14477 GLuint _mask, |
| 14478 GLenum _transformType, |
| 14479 uint32_t _transformValues_shm_id, |
| 14480 uint32_t _transformValues_shm_offset) { |
| 14481 SetHeader(); |
| 14482 numPaths = _numPaths; |
| 14483 pathNameType = _pathNameType; |
| 14484 paths_shm_id = _paths_shm_id; |
| 14485 paths_shm_offset = _paths_shm_offset; |
| 14486 pathBase = _pathBase; |
| 14487 reference = _reference; |
| 14488 mask = _mask; |
| 14489 transformType = _transformType; |
| 14490 transformValues_shm_id = _transformValues_shm_id; |
| 14491 transformValues_shm_offset = _transformValues_shm_offset; |
| 14492 } |
| 14493 |
| 14494 void* Set(void* cmd, |
| 14495 GLsizei _numPaths, |
| 14496 GLenum _pathNameType, |
| 14497 uint32_t _paths_shm_id, |
| 14498 uint32_t _paths_shm_offset, |
| 14499 GLuint _pathBase, |
| 14500 GLint _reference, |
| 14501 GLuint _mask, |
| 14502 GLenum _transformType, |
| 14503 uint32_t _transformValues_shm_id, |
| 14504 uint32_t _transformValues_shm_offset) { |
| 14505 static_cast<ValueType*>(cmd) |
| 14506 ->Init(_numPaths, _pathNameType, _paths_shm_id, _paths_shm_offset, |
| 14507 _pathBase, _reference, _mask, _transformType, |
| 14508 _transformValues_shm_id, _transformValues_shm_offset); |
| 14509 return NextCmdAddress<ValueType>(cmd); |
| 14510 } |
| 14511 |
| 14512 gpu::CommandHeader header; |
| 14513 int32_t numPaths; |
| 14514 uint32_t pathNameType; |
| 14515 uint32_t paths_shm_id; |
| 14516 uint32_t paths_shm_offset; |
| 14517 uint32_t pathBase; |
| 14518 int32_t reference; |
| 14519 uint32_t mask; |
| 14520 uint32_t transformType; |
| 14521 uint32_t transformValues_shm_id; |
| 14522 uint32_t transformValues_shm_offset; |
| 14523 }; |
| 14524 |
| 14525 static_assert(sizeof(StencilStrokePathInstancedCHROMIUM) == 44, |
| 14526 "size of StencilStrokePathInstancedCHROMIUM should be 44"); |
| 14527 static_assert( |
| 14528 offsetof(StencilStrokePathInstancedCHROMIUM, header) == 0, |
| 14529 "offset of StencilStrokePathInstancedCHROMIUM header should be 0"); |
| 14530 static_assert( |
| 14531 offsetof(StencilStrokePathInstancedCHROMIUM, numPaths) == 4, |
| 14532 "offset of StencilStrokePathInstancedCHROMIUM numPaths should be 4"); |
| 14533 static_assert( |
| 14534 offsetof(StencilStrokePathInstancedCHROMIUM, pathNameType) == 8, |
| 14535 "offset of StencilStrokePathInstancedCHROMIUM pathNameType should be 8"); |
| 14536 static_assert( |
| 14537 offsetof(StencilStrokePathInstancedCHROMIUM, paths_shm_id) == 12, |
| 14538 "offset of StencilStrokePathInstancedCHROMIUM paths_shm_id should be 12"); |
| 14539 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, paths_shm_offset) == |
| 14540 16, |
| 14541 "offset of StencilStrokePathInstancedCHROMIUM paths_shm_offset " |
| 14542 "should be 16"); |
| 14543 static_assert( |
| 14544 offsetof(StencilStrokePathInstancedCHROMIUM, pathBase) == 20, |
| 14545 "offset of StencilStrokePathInstancedCHROMIUM pathBase should be 20"); |
| 14546 static_assert( |
| 14547 offsetof(StencilStrokePathInstancedCHROMIUM, reference) == 24, |
| 14548 "offset of StencilStrokePathInstancedCHROMIUM reference should be 24"); |
| 14549 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, mask) == 28, |
| 14550 "offset of StencilStrokePathInstancedCHROMIUM mask should be 28"); |
| 14551 static_assert( |
| 14552 offsetof(StencilStrokePathInstancedCHROMIUM, transformType) == 32, |
| 14553 "offset of StencilStrokePathInstancedCHROMIUM transformType should be 32"); |
| 14554 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, |
| 14555 transformValues_shm_id) == 36, |
| 14556 "offset of StencilStrokePathInstancedCHROMIUM " |
| 14557 "transformValues_shm_id should be 36"); |
| 14558 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, |
| 14559 transformValues_shm_offset) == 40, |
| 14560 "offset of StencilStrokePathInstancedCHROMIUM " |
| 14561 "transformValues_shm_offset should be 40"); |
| 14562 |
| 14563 struct CoverFillPathInstancedCHROMIUM { |
| 14564 typedef CoverFillPathInstancedCHROMIUM ValueType; |
| 14565 static const CommandId kCmdId = kCoverFillPathInstancedCHROMIUM; |
| 14566 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14567 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14568 |
| 14569 static uint32_t ComputeSize() { |
| 14570 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14571 } |
| 14572 |
| 14573 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14574 |
| 14575 void Init(GLsizei _numPaths, |
| 14576 GLenum _pathNameType, |
| 14577 uint32_t _paths_shm_id, |
| 14578 uint32_t _paths_shm_offset, |
| 14579 GLuint _pathBase, |
| 14580 GLenum _coverMode, |
| 14581 GLenum _transformType, |
| 14582 uint32_t _transformValues_shm_id, |
| 14583 uint32_t _transformValues_shm_offset) { |
| 14584 SetHeader(); |
| 14585 numPaths = _numPaths; |
| 14586 pathNameType = _pathNameType; |
| 14587 paths_shm_id = _paths_shm_id; |
| 14588 paths_shm_offset = _paths_shm_offset; |
| 14589 pathBase = _pathBase; |
| 14590 coverMode = _coverMode; |
| 14591 transformType = _transformType; |
| 14592 transformValues_shm_id = _transformValues_shm_id; |
| 14593 transformValues_shm_offset = _transformValues_shm_offset; |
| 14594 } |
| 14595 |
| 14596 void* Set(void* cmd, |
| 14597 GLsizei _numPaths, |
| 14598 GLenum _pathNameType, |
| 14599 uint32_t _paths_shm_id, |
| 14600 uint32_t _paths_shm_offset, |
| 14601 GLuint _pathBase, |
| 14602 GLenum _coverMode, |
| 14603 GLenum _transformType, |
| 14604 uint32_t _transformValues_shm_id, |
| 14605 uint32_t _transformValues_shm_offset) { |
| 14606 static_cast<ValueType*>(cmd)->Init(_numPaths, _pathNameType, _paths_shm_id, |
| 14607 _paths_shm_offset, _pathBase, _coverMode, |
| 14608 _transformType, _transformValues_shm_id, |
| 14609 _transformValues_shm_offset); |
| 14610 return NextCmdAddress<ValueType>(cmd); |
| 14611 } |
| 14612 |
| 14613 gpu::CommandHeader header; |
| 14614 int32_t numPaths; |
| 14615 uint32_t pathNameType; |
| 14616 uint32_t paths_shm_id; |
| 14617 uint32_t paths_shm_offset; |
| 14618 uint32_t pathBase; |
| 14619 uint32_t coverMode; |
| 14620 uint32_t transformType; |
| 14621 uint32_t transformValues_shm_id; |
| 14622 uint32_t transformValues_shm_offset; |
| 14623 }; |
| 14624 |
| 14625 static_assert(sizeof(CoverFillPathInstancedCHROMIUM) == 40, |
| 14626 "size of CoverFillPathInstancedCHROMIUM should be 40"); |
| 14627 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, header) == 0, |
| 14628 "offset of CoverFillPathInstancedCHROMIUM header should be 0"); |
| 14629 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, numPaths) == 4, |
| 14630 "offset of CoverFillPathInstancedCHROMIUM numPaths should be 4"); |
| 14631 static_assert( |
| 14632 offsetof(CoverFillPathInstancedCHROMIUM, pathNameType) == 8, |
| 14633 "offset of CoverFillPathInstancedCHROMIUM pathNameType should be 8"); |
| 14634 static_assert( |
| 14635 offsetof(CoverFillPathInstancedCHROMIUM, paths_shm_id) == 12, |
| 14636 "offset of CoverFillPathInstancedCHROMIUM paths_shm_id should be 12"); |
| 14637 static_assert( |
| 14638 offsetof(CoverFillPathInstancedCHROMIUM, paths_shm_offset) == 16, |
| 14639 "offset of CoverFillPathInstancedCHROMIUM paths_shm_offset should be 16"); |
| 14640 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, pathBase) == 20, |
| 14641 "offset of CoverFillPathInstancedCHROMIUM pathBase should be 20"); |
| 14642 static_assert( |
| 14643 offsetof(CoverFillPathInstancedCHROMIUM, coverMode) == 24, |
| 14644 "offset of CoverFillPathInstancedCHROMIUM coverMode should be 24"); |
| 14645 static_assert( |
| 14646 offsetof(CoverFillPathInstancedCHROMIUM, transformType) == 28, |
| 14647 "offset of CoverFillPathInstancedCHROMIUM transformType should be 28"); |
| 14648 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, |
| 14649 transformValues_shm_id) == 32, |
| 14650 "offset of CoverFillPathInstancedCHROMIUM transformValues_shm_id " |
| 14651 "should be 32"); |
| 14652 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, |
| 14653 transformValues_shm_offset) == 36, |
| 14654 "offset of CoverFillPathInstancedCHROMIUM " |
| 14655 "transformValues_shm_offset should be 36"); |
| 14656 |
| 14657 struct CoverStrokePathInstancedCHROMIUM { |
| 14658 typedef CoverStrokePathInstancedCHROMIUM ValueType; |
| 14659 static const CommandId kCmdId = kCoverStrokePathInstancedCHROMIUM; |
| 14660 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14661 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14662 |
| 14663 static uint32_t ComputeSize() { |
| 14664 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14665 } |
| 14666 |
| 14667 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14668 |
| 14669 void Init(GLsizei _numPaths, |
| 14670 GLenum _pathNameType, |
| 14671 uint32_t _paths_shm_id, |
| 14672 uint32_t _paths_shm_offset, |
| 14673 GLuint _pathBase, |
| 14674 GLenum _coverMode, |
| 14675 GLenum _transformType, |
| 14676 uint32_t _transformValues_shm_id, |
| 14677 uint32_t _transformValues_shm_offset) { |
| 14678 SetHeader(); |
| 14679 numPaths = _numPaths; |
| 14680 pathNameType = _pathNameType; |
| 14681 paths_shm_id = _paths_shm_id; |
| 14682 paths_shm_offset = _paths_shm_offset; |
| 14683 pathBase = _pathBase; |
| 14684 coverMode = _coverMode; |
| 14685 transformType = _transformType; |
| 14686 transformValues_shm_id = _transformValues_shm_id; |
| 14687 transformValues_shm_offset = _transformValues_shm_offset; |
| 14688 } |
| 14689 |
| 14690 void* Set(void* cmd, |
| 14691 GLsizei _numPaths, |
| 14692 GLenum _pathNameType, |
| 14693 uint32_t _paths_shm_id, |
| 14694 uint32_t _paths_shm_offset, |
| 14695 GLuint _pathBase, |
| 14696 GLenum _coverMode, |
| 14697 GLenum _transformType, |
| 14698 uint32_t _transformValues_shm_id, |
| 14699 uint32_t _transformValues_shm_offset) { |
| 14700 static_cast<ValueType*>(cmd)->Init(_numPaths, _pathNameType, _paths_shm_id, |
| 14701 _paths_shm_offset, _pathBase, _coverMode, |
| 14702 _transformType, _transformValues_shm_id, |
| 14703 _transformValues_shm_offset); |
| 14704 return NextCmdAddress<ValueType>(cmd); |
| 14705 } |
| 14706 |
| 14707 gpu::CommandHeader header; |
| 14708 int32_t numPaths; |
| 14709 uint32_t pathNameType; |
| 14710 uint32_t paths_shm_id; |
| 14711 uint32_t paths_shm_offset; |
| 14712 uint32_t pathBase; |
| 14713 uint32_t coverMode; |
| 14714 uint32_t transformType; |
| 14715 uint32_t transformValues_shm_id; |
| 14716 uint32_t transformValues_shm_offset; |
| 14717 }; |
| 14718 |
| 14719 static_assert(sizeof(CoverStrokePathInstancedCHROMIUM) == 40, |
| 14720 "size of CoverStrokePathInstancedCHROMIUM should be 40"); |
| 14721 static_assert(offsetof(CoverStrokePathInstancedCHROMIUM, header) == 0, |
| 14722 "offset of CoverStrokePathInstancedCHROMIUM header should be 0"); |
| 14723 static_assert( |
| 14724 offsetof(CoverStrokePathInstancedCHROMIUM, numPaths) == 4, |
| 14725 "offset of CoverStrokePathInstancedCHROMIUM numPaths should be 4"); |
| 14726 static_assert( |
| 14727 offsetof(CoverStrokePathInstancedCHROMIUM, pathNameType) == 8, |
| 14728 "offset of CoverStrokePathInstancedCHROMIUM pathNameType should be 8"); |
| 14729 static_assert( |
| 14730 offsetof(CoverStrokePathInstancedCHROMIUM, paths_shm_id) == 12, |
| 14731 "offset of CoverStrokePathInstancedCHROMIUM paths_shm_id should be 12"); |
| 14732 static_assert( |
| 14733 offsetof(CoverStrokePathInstancedCHROMIUM, paths_shm_offset) == 16, |
| 14734 "offset of CoverStrokePathInstancedCHROMIUM paths_shm_offset should be 16"); |
| 14735 static_assert( |
| 14736 offsetof(CoverStrokePathInstancedCHROMIUM, pathBase) == 20, |
| 14737 "offset of CoverStrokePathInstancedCHROMIUM pathBase should be 20"); |
| 14738 static_assert( |
| 14739 offsetof(CoverStrokePathInstancedCHROMIUM, coverMode) == 24, |
| 14740 "offset of CoverStrokePathInstancedCHROMIUM coverMode should be 24"); |
| 14741 static_assert( |
| 14742 offsetof(CoverStrokePathInstancedCHROMIUM, transformType) == 28, |
| 14743 "offset of CoverStrokePathInstancedCHROMIUM transformType should be 28"); |
| 14744 static_assert(offsetof(CoverStrokePathInstancedCHROMIUM, |
| 14745 transformValues_shm_id) == 32, |
| 14746 "offset of CoverStrokePathInstancedCHROMIUM " |
| 14747 "transformValues_shm_id should be 32"); |
| 14748 static_assert(offsetof(CoverStrokePathInstancedCHROMIUM, |
| 14749 transformValues_shm_offset) == 36, |
| 14750 "offset of CoverStrokePathInstancedCHROMIUM " |
| 14751 "transformValues_shm_offset should be 36"); |
| 14752 |
| 14753 struct StencilThenCoverFillPathInstancedCHROMIUM { |
| 14754 typedef StencilThenCoverFillPathInstancedCHROMIUM ValueType; |
| 14755 static const CommandId kCmdId = kStencilThenCoverFillPathInstancedCHROMIUM; |
| 14756 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14757 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14758 |
| 14759 static uint32_t ComputeSize() { |
| 14760 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14761 } |
| 14762 |
| 14763 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14764 |
| 14765 void Init(GLsizei _numPaths, |
| 14766 GLenum _pathNameType, |
| 14767 uint32_t _paths_shm_id, |
| 14768 uint32_t _paths_shm_offset, |
| 14769 GLuint _pathBase, |
| 14770 GLenum _fillMode, |
| 14771 GLuint _mask, |
| 14772 GLenum _coverMode, |
| 14773 GLenum _transformType, |
| 14774 uint32_t _transformValues_shm_id, |
| 14775 uint32_t _transformValues_shm_offset) { |
| 14776 SetHeader(); |
| 14777 numPaths = _numPaths; |
| 14778 pathNameType = _pathNameType; |
| 14779 paths_shm_id = _paths_shm_id; |
| 14780 paths_shm_offset = _paths_shm_offset; |
| 14781 pathBase = _pathBase; |
| 14782 fillMode = _fillMode; |
| 14783 mask = _mask; |
| 14784 coverMode = _coverMode; |
| 14785 transformType = _transformType; |
| 14786 transformValues_shm_id = _transformValues_shm_id; |
| 14787 transformValues_shm_offset = _transformValues_shm_offset; |
| 14788 } |
| 14789 |
| 14790 void* Set(void* cmd, |
| 14791 GLsizei _numPaths, |
| 14792 GLenum _pathNameType, |
| 14793 uint32_t _paths_shm_id, |
| 14794 uint32_t _paths_shm_offset, |
| 14795 GLuint _pathBase, |
| 14796 GLenum _fillMode, |
| 14797 GLuint _mask, |
| 14798 GLenum _coverMode, |
| 14799 GLenum _transformType, |
| 14800 uint32_t _transformValues_shm_id, |
| 14801 uint32_t _transformValues_shm_offset) { |
| 14802 static_cast<ValueType*>(cmd) |
| 14803 ->Init(_numPaths, _pathNameType, _paths_shm_id, _paths_shm_offset, |
| 14804 _pathBase, _fillMode, _mask, _coverMode, _transformType, |
| 14805 _transformValues_shm_id, _transformValues_shm_offset); |
| 14806 return NextCmdAddress<ValueType>(cmd); |
| 14807 } |
| 14808 |
| 14809 gpu::CommandHeader header; |
| 14810 int32_t numPaths; |
| 14811 uint32_t pathNameType; |
| 14812 uint32_t paths_shm_id; |
| 14813 uint32_t paths_shm_offset; |
| 14814 uint32_t pathBase; |
| 14815 uint32_t fillMode; |
| 14816 uint32_t mask; |
| 14817 uint32_t coverMode; |
| 14818 uint32_t transformType; |
| 14819 uint32_t transformValues_shm_id; |
| 14820 uint32_t transformValues_shm_offset; |
| 14821 }; |
| 14822 |
| 14823 static_assert(sizeof(StencilThenCoverFillPathInstancedCHROMIUM) == 48, |
| 14824 "size of StencilThenCoverFillPathInstancedCHROMIUM should be 48"); |
| 14825 static_assert( |
| 14826 offsetof(StencilThenCoverFillPathInstancedCHROMIUM, header) == 0, |
| 14827 "offset of StencilThenCoverFillPathInstancedCHROMIUM header should be 0"); |
| 14828 static_assert( |
| 14829 offsetof(StencilThenCoverFillPathInstancedCHROMIUM, numPaths) == 4, |
| 14830 "offset of StencilThenCoverFillPathInstancedCHROMIUM numPaths should be 4"); |
| 14831 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 14832 pathNameType) == 8, |
| 14833 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 14834 "pathNameType should be 8"); |
| 14835 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 14836 paths_shm_id) == 12, |
| 14837 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 14838 "paths_shm_id should be 12"); |
| 14839 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 14840 paths_shm_offset) == 16, |
| 14841 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 14842 "paths_shm_offset should be 16"); |
| 14843 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, pathBase) == |
| 14844 20, |
| 14845 "offset of StencilThenCoverFillPathInstancedCHROMIUM pathBase " |
| 14846 "should be 20"); |
| 14847 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, fillMode) == |
| 14848 24, |
| 14849 "offset of StencilThenCoverFillPathInstancedCHROMIUM fillMode " |
| 14850 "should be 24"); |
| 14851 static_assert( |
| 14852 offsetof(StencilThenCoverFillPathInstancedCHROMIUM, mask) == 28, |
| 14853 "offset of StencilThenCoverFillPathInstancedCHROMIUM mask should be 28"); |
| 14854 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, coverMode) == |
| 14855 32, |
| 14856 "offset of StencilThenCoverFillPathInstancedCHROMIUM coverMode " |
| 14857 "should be 32"); |
| 14858 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 14859 transformType) == 36, |
| 14860 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 14861 "transformType should be 36"); |
| 14862 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 14863 transformValues_shm_id) == 40, |
| 14864 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 14865 "transformValues_shm_id should be 40"); |
| 14866 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 14867 transformValues_shm_offset) == 44, |
| 14868 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 14869 "transformValues_shm_offset should be 44"); |
| 14870 |
| 14871 struct StencilThenCoverStrokePathInstancedCHROMIUM { |
| 14872 typedef StencilThenCoverStrokePathInstancedCHROMIUM ValueType; |
| 14873 static const CommandId kCmdId = kStencilThenCoverStrokePathInstancedCHROMIUM; |
| 14874 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14875 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14876 |
| 14877 static uint32_t ComputeSize() { |
| 14878 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14879 } |
| 14880 |
| 14881 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14882 |
| 14883 void Init(GLsizei _numPaths, |
| 14884 GLenum _pathNameType, |
| 14885 uint32_t _paths_shm_id, |
| 14886 uint32_t _paths_shm_offset, |
| 14887 GLuint _pathBase, |
| 14888 GLint _reference, |
| 14889 GLuint _mask, |
| 14890 GLenum _coverMode, |
| 14891 GLenum _transformType, |
| 14892 uint32_t _transformValues_shm_id, |
| 14893 uint32_t _transformValues_shm_offset) { |
| 14894 SetHeader(); |
| 14895 numPaths = _numPaths; |
| 14896 pathNameType = _pathNameType; |
| 14897 paths_shm_id = _paths_shm_id; |
| 14898 paths_shm_offset = _paths_shm_offset; |
| 14899 pathBase = _pathBase; |
| 14900 reference = _reference; |
| 14901 mask = _mask; |
| 14902 coverMode = _coverMode; |
| 14903 transformType = _transformType; |
| 14904 transformValues_shm_id = _transformValues_shm_id; |
| 14905 transformValues_shm_offset = _transformValues_shm_offset; |
| 14906 } |
| 14907 |
| 14908 void* Set(void* cmd, |
| 14909 GLsizei _numPaths, |
| 14910 GLenum _pathNameType, |
| 14911 uint32_t _paths_shm_id, |
| 14912 uint32_t _paths_shm_offset, |
| 14913 GLuint _pathBase, |
| 14914 GLint _reference, |
| 14915 GLuint _mask, |
| 14916 GLenum _coverMode, |
| 14917 GLenum _transformType, |
| 14918 uint32_t _transformValues_shm_id, |
| 14919 uint32_t _transformValues_shm_offset) { |
| 14920 static_cast<ValueType*>(cmd) |
| 14921 ->Init(_numPaths, _pathNameType, _paths_shm_id, _paths_shm_offset, |
| 14922 _pathBase, _reference, _mask, _coverMode, _transformType, |
| 14923 _transformValues_shm_id, _transformValues_shm_offset); |
| 14924 return NextCmdAddress<ValueType>(cmd); |
| 14925 } |
| 14926 |
| 14927 gpu::CommandHeader header; |
| 14928 int32_t numPaths; |
| 14929 uint32_t pathNameType; |
| 14930 uint32_t paths_shm_id; |
| 14931 uint32_t paths_shm_offset; |
| 14932 uint32_t pathBase; |
| 14933 int32_t reference; |
| 14934 uint32_t mask; |
| 14935 uint32_t coverMode; |
| 14936 uint32_t transformType; |
| 14937 uint32_t transformValues_shm_id; |
| 14938 uint32_t transformValues_shm_offset; |
| 14939 }; |
| 14940 |
| 14941 static_assert( |
| 14942 sizeof(StencilThenCoverStrokePathInstancedCHROMIUM) == 48, |
| 14943 "size of StencilThenCoverStrokePathInstancedCHROMIUM should be 48"); |
| 14944 static_assert( |
| 14945 offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, header) == 0, |
| 14946 "offset of StencilThenCoverStrokePathInstancedCHROMIUM header should be 0"); |
| 14947 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, numPaths) == |
| 14948 4, |
| 14949 "offset of StencilThenCoverStrokePathInstancedCHROMIUM numPaths " |
| 14950 "should be 4"); |
| 14951 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 14952 pathNameType) == 8, |
| 14953 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 14954 "pathNameType should be 8"); |
| 14955 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 14956 paths_shm_id) == 12, |
| 14957 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 14958 "paths_shm_id should be 12"); |
| 14959 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 14960 paths_shm_offset) == 16, |
| 14961 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 14962 "paths_shm_offset should be 16"); |
| 14963 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, pathBase) == |
| 14964 20, |
| 14965 "offset of StencilThenCoverStrokePathInstancedCHROMIUM pathBase " |
| 14966 "should be 20"); |
| 14967 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 14968 reference) == 24, |
| 14969 "offset of StencilThenCoverStrokePathInstancedCHROMIUM reference " |
| 14970 "should be 24"); |
| 14971 static_assert( |
| 14972 offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, mask) == 28, |
| 14973 "offset of StencilThenCoverStrokePathInstancedCHROMIUM mask should be 28"); |
| 14974 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 14975 coverMode) == 32, |
| 14976 "offset of StencilThenCoverStrokePathInstancedCHROMIUM coverMode " |
| 14977 "should be 32"); |
| 14978 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 14979 transformType) == 36, |
| 14980 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 14981 "transformType should be 36"); |
| 14982 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 14983 transformValues_shm_id) == 40, |
| 14984 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 14985 "transformValues_shm_id should be 40"); |
| 14986 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 14987 transformValues_shm_offset) == 44, |
| 14988 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 14989 "transformValues_shm_offset should be 44"); |
| 14990 |
14357 struct BlendBarrierKHR { | 14991 struct BlendBarrierKHR { |
14358 typedef BlendBarrierKHR ValueType; | 14992 typedef BlendBarrierKHR ValueType; |
14359 static const CommandId kCmdId = kBlendBarrierKHR; | 14993 static const CommandId kCmdId = kBlendBarrierKHR; |
14360 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14994 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
14361 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14995 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
14362 | 14996 |
14363 static uint32_t ComputeSize() { | 14997 static uint32_t ComputeSize() { |
14364 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14998 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
14365 } | 14999 } |
14366 | 15000 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14403 gpu::CommandHeader header; | 15037 gpu::CommandHeader header; |
14404 }; | 15038 }; |
14405 | 15039 |
14406 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, | 15040 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, |
14407 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); | 15041 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); |
14408 static_assert( | 15042 static_assert( |
14409 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, | 15043 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, |
14410 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); | 15044 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); |
14411 | 15045 |
14412 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15046 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |