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 12426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12437 static const CommandId kCmdId = kCopyTextureCHROMIUM; | 12437 static const CommandId kCmdId = kCopyTextureCHROMIUM; |
12438 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12438 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
12439 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12439 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
12440 | 12440 |
12441 static uint32_t ComputeSize() { | 12441 static uint32_t ComputeSize() { |
12442 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12442 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
12443 } | 12443 } |
12444 | 12444 |
12445 void SetHeader() { header.SetCmd<ValueType>(); } | 12445 void SetHeader() { header.SetCmd<ValueType>(); } |
12446 | 12446 |
12447 void Init(GLuint _source_id, | 12447 void Init(GLenum _source_id, |
12448 GLint _source_level, | 12448 GLint _source_level, |
12449 GLenum _dest_target, | 12449 GLenum _dest_target, |
12450 GLuint _dest_id, | 12450 GLenum _dest_id, |
12451 GLint _dest_level, | 12451 GLint _dest_level, |
12452 GLint _internalformat, | 12452 GLint _internalformat, |
12453 GLenum _dest_type, | 12453 GLenum _dest_type, |
12454 GLboolean _unpack_flip_y, | 12454 GLboolean _unpack_flip_y, |
12455 GLboolean _unpack_premultiply_alpha, | 12455 GLboolean _unpack_premultiply_alpha, |
12456 GLboolean _unpack_unmultiply_alpha) { | 12456 GLboolean _unpack_unmultiply_alpha) { |
12457 SetHeader(); | 12457 SetHeader(); |
12458 source_id = _source_id; | 12458 source_id = _source_id; |
12459 source_level = _source_level; | 12459 source_level = _source_level; |
12460 dest_target = _dest_target; | 12460 dest_target = _dest_target; |
12461 dest_id = _dest_id; | 12461 dest_id = _dest_id; |
12462 dest_level = _dest_level; | 12462 dest_level = _dest_level; |
12463 internalformat = _internalformat; | 12463 internalformat = _internalformat; |
12464 dest_type = _dest_type; | 12464 dest_type = _dest_type; |
12465 unpack_flip_y = _unpack_flip_y; | 12465 unpack_flip_y = _unpack_flip_y; |
12466 unpack_premultiply_alpha = _unpack_premultiply_alpha; | 12466 unpack_premultiply_alpha = _unpack_premultiply_alpha; |
12467 unpack_unmultiply_alpha = _unpack_unmultiply_alpha; | 12467 unpack_unmultiply_alpha = _unpack_unmultiply_alpha; |
12468 } | 12468 } |
12469 | 12469 |
12470 void* Set(void* cmd, | 12470 void* Set(void* cmd, |
12471 GLuint _source_id, | 12471 GLenum _source_id, |
12472 GLint _source_level, | 12472 GLint _source_level, |
12473 GLenum _dest_target, | 12473 GLenum _dest_target, |
12474 GLuint _dest_id, | 12474 GLenum _dest_id, |
12475 GLint _dest_level, | 12475 GLint _dest_level, |
12476 GLint _internalformat, | 12476 GLint _internalformat, |
12477 GLenum _dest_type, | 12477 GLenum _dest_type, |
12478 GLboolean _unpack_flip_y, | 12478 GLboolean _unpack_flip_y, |
12479 GLboolean _unpack_premultiply_alpha, | 12479 GLboolean _unpack_premultiply_alpha, |
12480 GLboolean _unpack_unmultiply_alpha) { | 12480 GLboolean _unpack_unmultiply_alpha) { |
12481 static_cast<ValueType*>(cmd)->Init( | 12481 static_cast<ValueType*>(cmd)->Init( |
12482 _source_id, _source_level, _dest_target, _dest_id, _dest_level, | 12482 _source_id, _source_level, _dest_target, _dest_id, _dest_level, |
12483 _internalformat, _dest_type, _unpack_flip_y, _unpack_premultiply_alpha, | 12483 _internalformat, _dest_type, _unpack_flip_y, _unpack_premultiply_alpha, |
12484 _unpack_unmultiply_alpha); | 12484 _unpack_unmultiply_alpha); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12530 static const CommandId kCmdId = kCopySubTextureCHROMIUM; | 12530 static const CommandId kCmdId = kCopySubTextureCHROMIUM; |
12531 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12531 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
12532 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12532 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
12533 | 12533 |
12534 static uint32_t ComputeSize() { | 12534 static uint32_t ComputeSize() { |
12535 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12535 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
12536 } | 12536 } |
12537 | 12537 |
12538 void SetHeader() { header.SetCmd<ValueType>(); } | 12538 void SetHeader() { header.SetCmd<ValueType>(); } |
12539 | 12539 |
12540 void Init(GLuint _source_id, | 12540 void Init(GLenum _source_id, |
12541 GLint _source_level, | 12541 GLint _source_level, |
12542 GLenum _dest_target, | 12542 GLenum _dest_target, |
12543 GLuint _dest_id, | 12543 GLenum _dest_id, |
12544 GLint _dest_level, | 12544 GLint _dest_level, |
12545 GLint _xoffset, | 12545 GLint _xoffset, |
12546 GLint _yoffset, | 12546 GLint _yoffset, |
12547 GLint _x, | 12547 GLint _x, |
12548 GLint _y, | 12548 GLint _y, |
12549 GLsizei _width, | 12549 GLsizei _width, |
12550 GLsizei _height, | 12550 GLsizei _height, |
12551 GLboolean _unpack_flip_y, | 12551 GLboolean _unpack_flip_y, |
12552 GLboolean _unpack_premultiply_alpha, | 12552 GLboolean _unpack_premultiply_alpha, |
12553 GLboolean _unpack_unmultiply_alpha) { | 12553 GLboolean _unpack_unmultiply_alpha) { |
12554 SetHeader(); | 12554 SetHeader(); |
12555 source_id = _source_id; | 12555 source_id = _source_id; |
12556 source_level = _source_level; | 12556 source_level = _source_level; |
12557 dest_target = _dest_target; | 12557 dest_target = _dest_target; |
12558 dest_id = _dest_id; | 12558 dest_id = _dest_id; |
12559 dest_level = _dest_level; | 12559 dest_level = _dest_level; |
12560 xoffset = _xoffset; | 12560 xoffset = _xoffset; |
12561 yoffset = _yoffset; | 12561 yoffset = _yoffset; |
12562 x = _x; | 12562 x = _x; |
12563 y = _y; | 12563 y = _y; |
12564 width = _width; | 12564 width = _width; |
12565 height = _height; | 12565 height = _height; |
12566 unpack_flip_y = _unpack_flip_y; | 12566 unpack_flip_y = _unpack_flip_y; |
12567 unpack_premultiply_alpha = _unpack_premultiply_alpha; | 12567 unpack_premultiply_alpha = _unpack_premultiply_alpha; |
12568 unpack_unmultiply_alpha = _unpack_unmultiply_alpha; | 12568 unpack_unmultiply_alpha = _unpack_unmultiply_alpha; |
12569 } | 12569 } |
12570 | 12570 |
12571 void* Set(void* cmd, | 12571 void* Set(void* cmd, |
12572 GLuint _source_id, | 12572 GLenum _source_id, |
12573 GLint _source_level, | 12573 GLint _source_level, |
12574 GLenum _dest_target, | 12574 GLenum _dest_target, |
12575 GLuint _dest_id, | 12575 GLenum _dest_id, |
12576 GLint _dest_level, | 12576 GLint _dest_level, |
12577 GLint _xoffset, | 12577 GLint _xoffset, |
12578 GLint _yoffset, | 12578 GLint _yoffset, |
12579 GLint _x, | 12579 GLint _x, |
12580 GLint _y, | 12580 GLint _y, |
12581 GLsizei _width, | 12581 GLsizei _width, |
12582 GLsizei _height, | 12582 GLsizei _height, |
12583 GLboolean _unpack_flip_y, | 12583 GLboolean _unpack_flip_y, |
12584 GLboolean _unpack_premultiply_alpha, | 12584 GLboolean _unpack_premultiply_alpha, |
12585 GLboolean _unpack_unmultiply_alpha) { | 12585 GLboolean _unpack_unmultiply_alpha) { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12647 static const CommandId kCmdId = kCompressedCopyTextureCHROMIUM; | 12647 static const CommandId kCmdId = kCompressedCopyTextureCHROMIUM; |
12648 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12648 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
12649 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12649 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
12650 | 12650 |
12651 static uint32_t ComputeSize() { | 12651 static uint32_t ComputeSize() { |
12652 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12652 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
12653 } | 12653 } |
12654 | 12654 |
12655 void SetHeader() { header.SetCmd<ValueType>(); } | 12655 void SetHeader() { header.SetCmd<ValueType>(); } |
12656 | 12656 |
12657 void Init(GLuint _source_id, GLuint _dest_id) { | 12657 void Init(GLenum _source_id, GLenum _dest_id) { |
12658 SetHeader(); | 12658 SetHeader(); |
12659 source_id = _source_id; | 12659 source_id = _source_id; |
12660 dest_id = _dest_id; | 12660 dest_id = _dest_id; |
12661 } | 12661 } |
12662 | 12662 |
12663 void* Set(void* cmd, GLuint _source_id, GLuint _dest_id) { | 12663 void* Set(void* cmd, GLenum _source_id, GLenum _dest_id) { |
12664 static_cast<ValueType*>(cmd)->Init(_source_id, _dest_id); | 12664 static_cast<ValueType*>(cmd)->Init(_source_id, _dest_id); |
12665 return NextCmdAddress<ValueType>(cmd); | 12665 return NextCmdAddress<ValueType>(cmd); |
12666 } | 12666 } |
12667 | 12667 |
12668 gpu::CommandHeader header; | 12668 gpu::CommandHeader header; |
12669 uint32_t source_id; | 12669 uint32_t source_id; |
12670 uint32_t dest_id; | 12670 uint32_t dest_id; |
12671 }; | 12671 }; |
12672 | 12672 |
12673 static_assert(sizeof(CompressedCopyTextureCHROMIUM) == 12, | 12673 static_assert(sizeof(CompressedCopyTextureCHROMIUM) == 12, |
(...skipping 3219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15893 }; | 15893 }; |
15894 | 15894 |
15895 static_assert(sizeof(SetEnableDCLayersCHROMIUM) == 8, | 15895 static_assert(sizeof(SetEnableDCLayersCHROMIUM) == 8, |
15896 "size of SetEnableDCLayersCHROMIUM should be 8"); | 15896 "size of SetEnableDCLayersCHROMIUM should be 8"); |
15897 static_assert(offsetof(SetEnableDCLayersCHROMIUM, header) == 0, | 15897 static_assert(offsetof(SetEnableDCLayersCHROMIUM, header) == 0, |
15898 "offset of SetEnableDCLayersCHROMIUM header should be 0"); | 15898 "offset of SetEnableDCLayersCHROMIUM header should be 0"); |
15899 static_assert(offsetof(SetEnableDCLayersCHROMIUM, enabled) == 4, | 15899 static_assert(offsetof(SetEnableDCLayersCHROMIUM, enabled) == 4, |
15900 "offset of SetEnableDCLayersCHROMIUM enabled should be 4"); | 15900 "offset of SetEnableDCLayersCHROMIUM enabled should be 4"); |
15901 | 15901 |
15902 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15902 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |