| 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 12463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12474 "size of CompressedCopyTextureCHROMIUM should be 16"); | 12474 "size of CompressedCopyTextureCHROMIUM should be 16"); |
| 12475 static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0, | 12475 static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0, |
| 12476 "offset of CompressedCopyTextureCHROMIUM header should be 0"); | 12476 "offset of CompressedCopyTextureCHROMIUM header should be 0"); |
| 12477 static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4, | 12477 static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4, |
| 12478 "offset of CompressedCopyTextureCHROMIUM target should be 4"); | 12478 "offset of CompressedCopyTextureCHROMIUM target should be 4"); |
| 12479 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8, | 12479 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8, |
| 12480 "offset of CompressedCopyTextureCHROMIUM source_id should be 8"); | 12480 "offset of CompressedCopyTextureCHROMIUM source_id should be 8"); |
| 12481 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12, | 12481 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12, |
| 12482 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12"); | 12482 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12"); |
| 12483 | 12483 |
| 12484 struct CompressedCopySubTextureCHROMIUM { |
| 12485 typedef CompressedCopySubTextureCHROMIUM ValueType; |
| 12486 static const CommandId kCmdId = kCompressedCopySubTextureCHROMIUM; |
| 12487 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12488 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12489 |
| 12490 static uint32_t ComputeSize() { |
| 12491 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12492 } |
| 12493 |
| 12494 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12495 |
| 12496 void Init(GLenum _target, |
| 12497 GLenum _source_id, |
| 12498 GLenum _dest_id, |
| 12499 GLint _xoffset, |
| 12500 GLint _yoffset, |
| 12501 GLint _x, |
| 12502 GLint _y, |
| 12503 GLsizei _width, |
| 12504 GLsizei _height) { |
| 12505 SetHeader(); |
| 12506 target = _target; |
| 12507 source_id = _source_id; |
| 12508 dest_id = _dest_id; |
| 12509 xoffset = _xoffset; |
| 12510 yoffset = _yoffset; |
| 12511 x = _x; |
| 12512 y = _y; |
| 12513 width = _width; |
| 12514 height = _height; |
| 12515 } |
| 12516 |
| 12517 void* Set(void* cmd, |
| 12518 GLenum _target, |
| 12519 GLenum _source_id, |
| 12520 GLenum _dest_id, |
| 12521 GLint _xoffset, |
| 12522 GLint _yoffset, |
| 12523 GLint _x, |
| 12524 GLint _y, |
| 12525 GLsizei _width, |
| 12526 GLsizei _height) { |
| 12527 static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id, _xoffset, |
| 12528 _yoffset, _x, _y, _width, _height); |
| 12529 return NextCmdAddress<ValueType>(cmd); |
| 12530 } |
| 12531 |
| 12532 gpu::CommandHeader header; |
| 12533 uint32_t target; |
| 12534 uint32_t source_id; |
| 12535 uint32_t dest_id; |
| 12536 int32_t xoffset; |
| 12537 int32_t yoffset; |
| 12538 int32_t x; |
| 12539 int32_t y; |
| 12540 int32_t width; |
| 12541 int32_t height; |
| 12542 }; |
| 12543 |
| 12544 static_assert(sizeof(CompressedCopySubTextureCHROMIUM) == 40, |
| 12545 "size of CompressedCopySubTextureCHROMIUM should be 40"); |
| 12546 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, header) == 0, |
| 12547 "offset of CompressedCopySubTextureCHROMIUM header should be 0"); |
| 12548 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, target) == 4, |
| 12549 "offset of CompressedCopySubTextureCHROMIUM target should be 4"); |
| 12550 static_assert( |
| 12551 offsetof(CompressedCopySubTextureCHROMIUM, source_id) == 8, |
| 12552 "offset of CompressedCopySubTextureCHROMIUM source_id should be 8"); |
| 12553 static_assert( |
| 12554 offsetof(CompressedCopySubTextureCHROMIUM, dest_id) == 12, |
| 12555 "offset of CompressedCopySubTextureCHROMIUM dest_id should be 12"); |
| 12556 static_assert( |
| 12557 offsetof(CompressedCopySubTextureCHROMIUM, xoffset) == 16, |
| 12558 "offset of CompressedCopySubTextureCHROMIUM xoffset should be 16"); |
| 12559 static_assert( |
| 12560 offsetof(CompressedCopySubTextureCHROMIUM, yoffset) == 20, |
| 12561 "offset of CompressedCopySubTextureCHROMIUM yoffset should be 20"); |
| 12562 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, x) == 24, |
| 12563 "offset of CompressedCopySubTextureCHROMIUM x should be 24"); |
| 12564 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, y) == 28, |
| 12565 "offset of CompressedCopySubTextureCHROMIUM y should be 28"); |
| 12566 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, width) == 32, |
| 12567 "offset of CompressedCopySubTextureCHROMIUM width should be 32"); |
| 12568 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, height) == 36, |
| 12569 "offset of CompressedCopySubTextureCHROMIUM height should be 36"); |
| 12570 |
| 12484 struct DrawArraysInstancedANGLE { | 12571 struct DrawArraysInstancedANGLE { |
| 12485 typedef DrawArraysInstancedANGLE ValueType; | 12572 typedef DrawArraysInstancedANGLE ValueType; |
| 12486 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 12573 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
| 12487 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12574 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12488 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12575 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 12489 | 12576 |
| 12490 static uint32_t ComputeSize() { | 12577 static uint32_t ComputeSize() { |
| 12491 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12578 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12492 } | 12579 } |
| 12493 | 12580 |
| (...skipping 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14527 | 14614 |
| 14528 gpu::CommandHeader header; | 14615 gpu::CommandHeader header; |
| 14529 }; | 14616 }; |
| 14530 | 14617 |
| 14531 static_assert(sizeof(BlendBarrierKHR) == 4, | 14618 static_assert(sizeof(BlendBarrierKHR) == 4, |
| 14532 "size of BlendBarrierKHR should be 4"); | 14619 "size of BlendBarrierKHR should be 4"); |
| 14533 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 14620 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
| 14534 "offset of BlendBarrierKHR header should be 0"); | 14621 "offset of BlendBarrierKHR header should be 0"); |
| 14535 | 14622 |
| 14536 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 14623 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |