| 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 13544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13555 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 28"); | 13555 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 28"); |
| 13556 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, | 13556 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, |
| 13557 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 32"); | 13557 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 32"); |
| 13558 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, | 13558 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, |
| 13559 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36"); | 13559 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36"); |
| 13560 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, | 13560 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, |
| 13561 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40"); | 13561 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40"); |
| 13562 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, | 13562 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, |
| 13563 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44"); | 13563 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44"); |
| 13564 | 13564 |
| 13565 struct ScheduleCALayerSharedStateCHROMIUM { |
| 13566 typedef ScheduleCALayerSharedStateCHROMIUM ValueType; |
| 13567 static const CommandId kCmdId = kScheduleCALayerSharedStateCHROMIUM; |
| 13568 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13569 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13570 |
| 13571 static uint32_t ComputeSize() { |
| 13572 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13573 } |
| 13574 |
| 13575 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13576 |
| 13577 void Init(GLfloat _opacity, |
| 13578 GLboolean _is_clipped, |
| 13579 GLint _sorting_context_id, |
| 13580 GLuint _shm_id, |
| 13581 GLuint _shm_offset) { |
| 13582 SetHeader(); |
| 13583 opacity = _opacity; |
| 13584 is_clipped = _is_clipped; |
| 13585 sorting_context_id = _sorting_context_id; |
| 13586 shm_id = _shm_id; |
| 13587 shm_offset = _shm_offset; |
| 13588 } |
| 13589 |
| 13590 void* Set(void* cmd, |
| 13591 GLfloat _opacity, |
| 13592 GLboolean _is_clipped, |
| 13593 GLint _sorting_context_id, |
| 13594 GLuint _shm_id, |
| 13595 GLuint _shm_offset) { |
| 13596 static_cast<ValueType*>(cmd)->Init( |
| 13597 _opacity, _is_clipped, _sorting_context_id, _shm_id, _shm_offset); |
| 13598 return NextCmdAddress<ValueType>(cmd); |
| 13599 } |
| 13600 |
| 13601 gpu::CommandHeader header; |
| 13602 float opacity; |
| 13603 uint32_t is_clipped; |
| 13604 int32_t sorting_context_id; |
| 13605 uint32_t shm_id; |
| 13606 uint32_t shm_offset; |
| 13607 }; |
| 13608 |
| 13609 static_assert(sizeof(ScheduleCALayerSharedStateCHROMIUM) == 24, |
| 13610 "size of ScheduleCALayerSharedStateCHROMIUM should be 24"); |
| 13611 static_assert( |
| 13612 offsetof(ScheduleCALayerSharedStateCHROMIUM, header) == 0, |
| 13613 "offset of ScheduleCALayerSharedStateCHROMIUM header should be 0"); |
| 13614 static_assert( |
| 13615 offsetof(ScheduleCALayerSharedStateCHROMIUM, opacity) == 4, |
| 13616 "offset of ScheduleCALayerSharedStateCHROMIUM opacity should be 4"); |
| 13617 static_assert( |
| 13618 offsetof(ScheduleCALayerSharedStateCHROMIUM, is_clipped) == 8, |
| 13619 "offset of ScheduleCALayerSharedStateCHROMIUM is_clipped should be 8"); |
| 13620 static_assert(offsetof(ScheduleCALayerSharedStateCHROMIUM, |
| 13621 sorting_context_id) == 12, |
| 13622 "offset of ScheduleCALayerSharedStateCHROMIUM sorting_context_id " |
| 13623 "should be 12"); |
| 13624 static_assert( |
| 13625 offsetof(ScheduleCALayerSharedStateCHROMIUM, shm_id) == 16, |
| 13626 "offset of ScheduleCALayerSharedStateCHROMIUM shm_id should be 16"); |
| 13627 static_assert( |
| 13628 offsetof(ScheduleCALayerSharedStateCHROMIUM, shm_offset) == 20, |
| 13629 "offset of ScheduleCALayerSharedStateCHROMIUM shm_offset should be 20"); |
| 13630 |
| 13565 struct ScheduleCALayerCHROMIUM { | 13631 struct ScheduleCALayerCHROMIUM { |
| 13566 typedef ScheduleCALayerCHROMIUM ValueType; | 13632 typedef ScheduleCALayerCHROMIUM ValueType; |
| 13567 static const CommandId kCmdId = kScheduleCALayerCHROMIUM; | 13633 static const CommandId kCmdId = kScheduleCALayerCHROMIUM; |
| 13568 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13634 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13569 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13635 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13570 | 13636 |
| 13571 static uint32_t ComputeSize() { | 13637 static uint32_t ComputeSize() { |
| 13572 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13638 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13573 } | 13639 } |
| 13574 | 13640 |
| 13575 void SetHeader() { header.SetCmd<ValueType>(); } | 13641 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13576 | 13642 |
| 13577 void Init(GLuint _contents_texture_id, | 13643 void Init(GLuint _contents_texture_id, |
| 13578 GLfloat _opacity, | |
| 13579 GLuint _background_color, | 13644 GLuint _background_color, |
| 13580 GLuint _edge_aa_mask, | 13645 GLuint _edge_aa_mask, |
| 13581 GLboolean _is_clipped, | |
| 13582 GLint _sorting_context_id, | |
| 13583 GLuint _filter, | 13646 GLuint _filter, |
| 13584 GLuint _shm_id, | 13647 GLuint _shm_id, |
| 13585 GLuint _shm_offset) { | 13648 GLuint _shm_offset) { |
| 13586 SetHeader(); | 13649 SetHeader(); |
| 13587 contents_texture_id = _contents_texture_id; | 13650 contents_texture_id = _contents_texture_id; |
| 13588 opacity = _opacity; | |
| 13589 background_color = _background_color; | 13651 background_color = _background_color; |
| 13590 edge_aa_mask = _edge_aa_mask; | 13652 edge_aa_mask = _edge_aa_mask; |
| 13591 is_clipped = _is_clipped; | |
| 13592 sorting_context_id = _sorting_context_id; | |
| 13593 filter = _filter; | 13653 filter = _filter; |
| 13594 shm_id = _shm_id; | 13654 shm_id = _shm_id; |
| 13595 shm_offset = _shm_offset; | 13655 shm_offset = _shm_offset; |
| 13596 } | 13656 } |
| 13597 | 13657 |
| 13598 void* Set(void* cmd, | 13658 void* Set(void* cmd, |
| 13599 GLuint _contents_texture_id, | 13659 GLuint _contents_texture_id, |
| 13600 GLfloat _opacity, | |
| 13601 GLuint _background_color, | 13660 GLuint _background_color, |
| 13602 GLuint _edge_aa_mask, | 13661 GLuint _edge_aa_mask, |
| 13603 GLboolean _is_clipped, | |
| 13604 GLint _sorting_context_id, | |
| 13605 GLuint _filter, | 13662 GLuint _filter, |
| 13606 GLuint _shm_id, | 13663 GLuint _shm_id, |
| 13607 GLuint _shm_offset) { | 13664 GLuint _shm_offset) { |
| 13608 static_cast<ValueType*>(cmd)->Init( | 13665 static_cast<ValueType*>(cmd)->Init(_contents_texture_id, _background_color, |
| 13609 _contents_texture_id, _opacity, _background_color, _edge_aa_mask, | 13666 _edge_aa_mask, _filter, _shm_id, |
| 13610 _is_clipped, _sorting_context_id, _filter, _shm_id, _shm_offset); | 13667 _shm_offset); |
| 13611 return NextCmdAddress<ValueType>(cmd); | 13668 return NextCmdAddress<ValueType>(cmd); |
| 13612 } | 13669 } |
| 13613 | 13670 |
| 13614 gpu::CommandHeader header; | 13671 gpu::CommandHeader header; |
| 13615 uint32_t contents_texture_id; | 13672 uint32_t contents_texture_id; |
| 13616 float opacity; | |
| 13617 uint32_t background_color; | 13673 uint32_t background_color; |
| 13618 uint32_t edge_aa_mask; | 13674 uint32_t edge_aa_mask; |
| 13619 uint32_t is_clipped; | |
| 13620 int32_t sorting_context_id; | |
| 13621 uint32_t filter; | 13675 uint32_t filter; |
| 13622 uint32_t shm_id; | 13676 uint32_t shm_id; |
| 13623 uint32_t shm_offset; | 13677 uint32_t shm_offset; |
| 13624 }; | 13678 }; |
| 13625 | 13679 |
| 13626 static_assert(sizeof(ScheduleCALayerCHROMIUM) == 40, | 13680 static_assert(sizeof(ScheduleCALayerCHROMIUM) == 28, |
| 13627 "size of ScheduleCALayerCHROMIUM should be 40"); | 13681 "size of ScheduleCALayerCHROMIUM should be 28"); |
| 13628 static_assert(offsetof(ScheduleCALayerCHROMIUM, header) == 0, | 13682 static_assert(offsetof(ScheduleCALayerCHROMIUM, header) == 0, |
| 13629 "offset of ScheduleCALayerCHROMIUM header should be 0"); | 13683 "offset of ScheduleCALayerCHROMIUM header should be 0"); |
| 13630 static_assert( | 13684 static_assert( |
| 13631 offsetof(ScheduleCALayerCHROMIUM, contents_texture_id) == 4, | 13685 offsetof(ScheduleCALayerCHROMIUM, contents_texture_id) == 4, |
| 13632 "offset of ScheduleCALayerCHROMIUM contents_texture_id should be 4"); | 13686 "offset of ScheduleCALayerCHROMIUM contents_texture_id should be 4"); |
| 13633 static_assert(offsetof(ScheduleCALayerCHROMIUM, opacity) == 8, | 13687 static_assert(offsetof(ScheduleCALayerCHROMIUM, background_color) == 8, |
| 13634 "offset of ScheduleCALayerCHROMIUM opacity should be 8"); | 13688 "offset of ScheduleCALayerCHROMIUM background_color should be 8"); |
| 13635 static_assert( | 13689 static_assert(offsetof(ScheduleCALayerCHROMIUM, edge_aa_mask) == 12, |
| 13636 offsetof(ScheduleCALayerCHROMIUM, background_color) == 12, | 13690 "offset of ScheduleCALayerCHROMIUM edge_aa_mask should be 12"); |
| 13637 "offset of ScheduleCALayerCHROMIUM background_color should be 12"); | 13691 static_assert(offsetof(ScheduleCALayerCHROMIUM, filter) == 16, |
| 13638 static_assert(offsetof(ScheduleCALayerCHROMIUM, edge_aa_mask) == 16, | 13692 "offset of ScheduleCALayerCHROMIUM filter should be 16"); |
| 13639 "offset of ScheduleCALayerCHROMIUM edge_aa_mask should be 16"); | 13693 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 20, |
| 13640 static_assert(offsetof(ScheduleCALayerCHROMIUM, is_clipped) == 20, | 13694 "offset of ScheduleCALayerCHROMIUM shm_id should be 20"); |
| 13641 "offset of ScheduleCALayerCHROMIUM is_clipped should be 20"); | 13695 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 24, |
| 13642 static_assert( | 13696 "offset of ScheduleCALayerCHROMIUM shm_offset should be 24"); |
| 13643 offsetof(ScheduleCALayerCHROMIUM, sorting_context_id) == 24, | |
| 13644 "offset of ScheduleCALayerCHROMIUM sorting_context_id should be 24"); | |
| 13645 static_assert(offsetof(ScheduleCALayerCHROMIUM, filter) == 28, | |
| 13646 "offset of ScheduleCALayerCHROMIUM filter should be 28"); | |
| 13647 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 32, | |
| 13648 "offset of ScheduleCALayerCHROMIUM shm_id should be 32"); | |
| 13649 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 36, | |
| 13650 "offset of ScheduleCALayerCHROMIUM shm_offset should be 36"); | |
| 13651 | 13697 |
| 13652 struct ScheduleCALayerInUseQueryCHROMIUMImmediate { | 13698 struct ScheduleCALayerInUseQueryCHROMIUMImmediate { |
| 13653 typedef ScheduleCALayerInUseQueryCHROMIUMImmediate ValueType; | 13699 typedef ScheduleCALayerInUseQueryCHROMIUMImmediate ValueType; |
| 13654 static const CommandId kCmdId = kScheduleCALayerInUseQueryCHROMIUMImmediate; | 13700 static const CommandId kCmdId = kScheduleCALayerInUseQueryCHROMIUMImmediate; |
| 13655 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 13701 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 13656 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13702 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13657 | 13703 |
| 13658 static uint32_t ComputeDataSize(GLsizei count) { | 13704 static uint32_t ComputeDataSize(GLsizei count) { |
| 13659 return static_cast<uint32_t>(sizeof(GLuint) * 1 * count); // NOLINT | 13705 return static_cast<uint32_t>(sizeof(GLuint) * 1 * count); // NOLINT |
| 13660 } | 13706 } |
| (...skipping 1830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15491 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, | 15537 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, |
| 15492 location) == 4, | 15538 location) == 4, |
| 15493 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " | 15539 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " |
| 15494 "location should be 4"); | 15540 "location should be 4"); |
| 15495 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, | 15541 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, |
| 15496 transpose) == 8, | 15542 transpose) == 8, |
| 15497 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " | 15543 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " |
| 15498 "transpose should be 8"); | 15544 "transpose should be 8"); |
| 15499 | 15545 |
| 15500 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15546 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |