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 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 | 955 |
956 void* Set(void* cmd, | 956 void* Set(void* cmd, |
957 GLenum _target, | 957 GLenum _target, |
958 GLint _level, | 958 GLint _level, |
959 GLenum _internalformat, | 959 GLenum _internalformat, |
960 GLsizei _width, | 960 GLsizei _width, |
961 GLsizei _height, | 961 GLsizei _height, |
962 GLsizei _imageSize, | 962 GLsizei _imageSize, |
963 uint32_t _data_shm_id, | 963 uint32_t _data_shm_id, |
964 uint32_t _data_shm_offset) { | 964 uint32_t _data_shm_offset) { |
965 static_cast<ValueType*>(cmd)->Init(_target, | 965 static_cast<ValueType*>(cmd)->Init(_target, _level, _internalformat, _width, |
966 _level, | 966 _height, _imageSize, _data_shm_id, |
967 _internalformat, | |
968 _width, | |
969 _height, | |
970 _imageSize, | |
971 _data_shm_id, | |
972 _data_shm_offset); | 967 _data_shm_offset); |
973 return NextCmdAddress<ValueType>(cmd); | 968 return NextCmdAddress<ValueType>(cmd); |
974 } | 969 } |
975 | 970 |
976 gpu::CommandHeader header; | 971 gpu::CommandHeader header; |
977 uint32_t target; | 972 uint32_t target; |
978 int32_t level; | 973 int32_t level; |
979 uint32_t internalformat; | 974 uint32_t internalformat; |
980 int32_t width; | 975 int32_t width; |
981 int32_t height; | 976 int32_t height; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 | 1034 |
1040 void* Set(void* cmd, | 1035 void* Set(void* cmd, |
1041 GLenum _target, | 1036 GLenum _target, |
1042 GLint _level, | 1037 GLint _level, |
1043 GLint _xoffset, | 1038 GLint _xoffset, |
1044 GLint _yoffset, | 1039 GLint _yoffset, |
1045 GLsizei _width, | 1040 GLsizei _width, |
1046 GLsizei _height, | 1041 GLsizei _height, |
1047 GLenum _format, | 1042 GLenum _format, |
1048 GLuint _bucket_id) { | 1043 GLuint _bucket_id) { |
1049 static_cast<ValueType*>(cmd)->Init(_target, | 1044 static_cast<ValueType*>(cmd)->Init(_target, _level, _xoffset, _yoffset, |
1050 _level, | 1045 _width, _height, _format, _bucket_id); |
1051 _xoffset, | |
1052 _yoffset, | |
1053 _width, | |
1054 _height, | |
1055 _format, | |
1056 _bucket_id); | |
1057 return NextCmdAddress<ValueType>(cmd); | 1046 return NextCmdAddress<ValueType>(cmd); |
1058 } | 1047 } |
1059 | 1048 |
1060 gpu::CommandHeader header; | 1049 gpu::CommandHeader header; |
1061 uint32_t target; | 1050 uint32_t target; |
1062 int32_t level; | 1051 int32_t level; |
1063 int32_t xoffset; | 1052 int32_t xoffset; |
1064 int32_t yoffset; | 1053 int32_t yoffset; |
1065 int32_t width; | 1054 int32_t width; |
1066 int32_t height; | 1055 int32_t height; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 GLenum _target, | 1117 GLenum _target, |
1129 GLint _level, | 1118 GLint _level, |
1130 GLint _xoffset, | 1119 GLint _xoffset, |
1131 GLint _yoffset, | 1120 GLint _yoffset, |
1132 GLsizei _width, | 1121 GLsizei _width, |
1133 GLsizei _height, | 1122 GLsizei _height, |
1134 GLenum _format, | 1123 GLenum _format, |
1135 GLsizei _imageSize, | 1124 GLsizei _imageSize, |
1136 uint32_t _data_shm_id, | 1125 uint32_t _data_shm_id, |
1137 uint32_t _data_shm_offset) { | 1126 uint32_t _data_shm_offset) { |
1138 static_cast<ValueType*>(cmd)->Init(_target, | 1127 static_cast<ValueType*>(cmd)->Init(_target, _level, _xoffset, _yoffset, |
1139 _level, | 1128 _width, _height, _format, _imageSize, |
1140 _xoffset, | 1129 _data_shm_id, _data_shm_offset); |
1141 _yoffset, | |
1142 _width, | |
1143 _height, | |
1144 _format, | |
1145 _imageSize, | |
1146 _data_shm_id, | |
1147 _data_shm_offset); | |
1148 return NextCmdAddress<ValueType>(cmd); | 1130 return NextCmdAddress<ValueType>(cmd); |
1149 } | 1131 } |
1150 | 1132 |
1151 gpu::CommandHeader header; | 1133 gpu::CommandHeader header; |
1152 uint32_t target; | 1134 uint32_t target; |
1153 int32_t level; | 1135 int32_t level; |
1154 int32_t xoffset; | 1136 int32_t xoffset; |
1155 int32_t yoffset; | 1137 int32_t yoffset; |
1156 int32_t width; | 1138 int32_t width; |
1157 int32_t height; | 1139 int32_t height; |
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2429 result_shm_id = _result_shm_id; | 2411 result_shm_id = _result_shm_id; |
2430 result_shm_offset = _result_shm_offset; | 2412 result_shm_offset = _result_shm_offset; |
2431 } | 2413 } |
2432 | 2414 |
2433 void* Set(void* cmd, | 2415 void* Set(void* cmd, |
2434 GLuint _program, | 2416 GLuint _program, |
2435 GLuint _index, | 2417 GLuint _index, |
2436 uint32_t _name_bucket_id, | 2418 uint32_t _name_bucket_id, |
2437 uint32_t _result_shm_id, | 2419 uint32_t _result_shm_id, |
2438 uint32_t _result_shm_offset) { | 2420 uint32_t _result_shm_offset) { |
2439 static_cast<ValueType*>(cmd)->Init( | 2421 static_cast<ValueType*>(cmd)->Init(_program, _index, _name_bucket_id, |
2440 _program, _index, _name_bucket_id, _result_shm_id, _result_shm_offset); | 2422 _result_shm_id, _result_shm_offset); |
2441 return NextCmdAddress<ValueType>(cmd); | 2423 return NextCmdAddress<ValueType>(cmd); |
2442 } | 2424 } |
2443 | 2425 |
2444 gpu::CommandHeader header; | 2426 gpu::CommandHeader header; |
2445 uint32_t program; | 2427 uint32_t program; |
2446 uint32_t index; | 2428 uint32_t index; |
2447 uint32_t name_bucket_id; | 2429 uint32_t name_bucket_id; |
2448 uint32_t result_shm_id; | 2430 uint32_t result_shm_id; |
2449 uint32_t result_shm_offset; | 2431 uint32_t result_shm_offset; |
2450 }; | 2432 }; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2499 result_shm_id = _result_shm_id; | 2481 result_shm_id = _result_shm_id; |
2500 result_shm_offset = _result_shm_offset; | 2482 result_shm_offset = _result_shm_offset; |
2501 } | 2483 } |
2502 | 2484 |
2503 void* Set(void* cmd, | 2485 void* Set(void* cmd, |
2504 GLuint _program, | 2486 GLuint _program, |
2505 GLuint _index, | 2487 GLuint _index, |
2506 uint32_t _name_bucket_id, | 2488 uint32_t _name_bucket_id, |
2507 uint32_t _result_shm_id, | 2489 uint32_t _result_shm_id, |
2508 uint32_t _result_shm_offset) { | 2490 uint32_t _result_shm_offset) { |
2509 static_cast<ValueType*>(cmd)->Init( | 2491 static_cast<ValueType*>(cmd)->Init(_program, _index, _name_bucket_id, |
2510 _program, _index, _name_bucket_id, _result_shm_id, _result_shm_offset); | 2492 _result_shm_id, _result_shm_offset); |
2511 return NextCmdAddress<ValueType>(cmd); | 2493 return NextCmdAddress<ValueType>(cmd); |
2512 } | 2494 } |
2513 | 2495 |
2514 gpu::CommandHeader header; | 2496 gpu::CommandHeader header; |
2515 uint32_t program; | 2497 uint32_t program; |
2516 uint32_t index; | 2498 uint32_t index; |
2517 uint32_t name_bucket_id; | 2499 uint32_t name_bucket_id; |
2518 uint32_t result_shm_id; | 2500 uint32_t result_shm_id; |
2519 uint32_t result_shm_offset; | 2501 uint32_t result_shm_offset; |
2520 }; | 2502 }; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2618 name_bucket_id = _name_bucket_id; | 2600 name_bucket_id = _name_bucket_id; |
2619 location_shm_id = _location_shm_id; | 2601 location_shm_id = _location_shm_id; |
2620 location_shm_offset = _location_shm_offset; | 2602 location_shm_offset = _location_shm_offset; |
2621 } | 2603 } |
2622 | 2604 |
2623 void* Set(void* cmd, | 2605 void* Set(void* cmd, |
2624 GLuint _program, | 2606 GLuint _program, |
2625 uint32_t _name_bucket_id, | 2607 uint32_t _name_bucket_id, |
2626 uint32_t _location_shm_id, | 2608 uint32_t _location_shm_id, |
2627 uint32_t _location_shm_offset) { | 2609 uint32_t _location_shm_offset) { |
2628 static_cast<ValueType*>(cmd)->Init( | 2610 static_cast<ValueType*>(cmd)->Init(_program, _name_bucket_id, |
2629 _program, _name_bucket_id, _location_shm_id, _location_shm_offset); | 2611 _location_shm_id, _location_shm_offset); |
2630 return NextCmdAddress<ValueType>(cmd); | 2612 return NextCmdAddress<ValueType>(cmd); |
2631 } | 2613 } |
2632 | 2614 |
2633 gpu::CommandHeader header; | 2615 gpu::CommandHeader header; |
2634 uint32_t program; | 2616 uint32_t program; |
2635 uint32_t name_bucket_id; | 2617 uint32_t name_bucket_id; |
2636 uint32_t location_shm_id; | 2618 uint32_t location_shm_id; |
2637 uint32_t location_shm_offset; | 2619 uint32_t location_shm_offset; |
2638 }; | 2620 }; |
2639 | 2621 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2863 params_shm_id = _params_shm_id; | 2845 params_shm_id = _params_shm_id; |
2864 params_shm_offset = _params_shm_offset; | 2846 params_shm_offset = _params_shm_offset; |
2865 } | 2847 } |
2866 | 2848 |
2867 void* Set(void* cmd, | 2849 void* Set(void* cmd, |
2868 GLenum _target, | 2850 GLenum _target, |
2869 GLenum _attachment, | 2851 GLenum _attachment, |
2870 GLenum _pname, | 2852 GLenum _pname, |
2871 uint32_t _params_shm_id, | 2853 uint32_t _params_shm_id, |
2872 uint32_t _params_shm_offset) { | 2854 uint32_t _params_shm_offset) { |
2873 static_cast<ValueType*>(cmd)->Init( | 2855 static_cast<ValueType*>(cmd)->Init(_target, _attachment, _pname, |
2874 _target, _attachment, _pname, _params_shm_id, _params_shm_offset); | 2856 _params_shm_id, _params_shm_offset); |
2875 return NextCmdAddress<ValueType>(cmd); | 2857 return NextCmdAddress<ValueType>(cmd); |
2876 } | 2858 } |
2877 | 2859 |
2878 gpu::CommandHeader header; | 2860 gpu::CommandHeader header; |
2879 uint32_t target; | 2861 uint32_t target; |
2880 uint32_t attachment; | 2862 uint32_t attachment; |
2881 uint32_t pname; | 2863 uint32_t pname; |
2882 uint32_t params_shm_id; | 2864 uint32_t params_shm_id; |
2883 uint32_t params_shm_offset; | 2865 uint32_t params_shm_offset; |
2884 }; | 2866 }; |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3565 name_bucket_id = _name_bucket_id; | 3547 name_bucket_id = _name_bucket_id; |
3566 location_shm_id = _location_shm_id; | 3548 location_shm_id = _location_shm_id; |
3567 location_shm_offset = _location_shm_offset; | 3549 location_shm_offset = _location_shm_offset; |
3568 } | 3550 } |
3569 | 3551 |
3570 void* Set(void* cmd, | 3552 void* Set(void* cmd, |
3571 GLuint _program, | 3553 GLuint _program, |
3572 uint32_t _name_bucket_id, | 3554 uint32_t _name_bucket_id, |
3573 uint32_t _location_shm_id, | 3555 uint32_t _location_shm_id, |
3574 uint32_t _location_shm_offset) { | 3556 uint32_t _location_shm_offset) { |
3575 static_cast<ValueType*>(cmd)->Init( | 3557 static_cast<ValueType*>(cmd)->Init(_program, _name_bucket_id, |
3576 _program, _name_bucket_id, _location_shm_id, _location_shm_offset); | 3558 _location_shm_id, _location_shm_offset); |
3577 return NextCmdAddress<ValueType>(cmd); | 3559 return NextCmdAddress<ValueType>(cmd); |
3578 } | 3560 } |
3579 | 3561 |
3580 gpu::CommandHeader header; | 3562 gpu::CommandHeader header; |
3581 uint32_t program; | 3563 uint32_t program; |
3582 uint32_t name_bucket_id; | 3564 uint32_t name_bucket_id; |
3583 uint32_t location_shm_id; | 3565 uint32_t location_shm_id; |
3584 uint32_t location_shm_offset; | 3566 uint32_t location_shm_offset; |
3585 }; | 3567 }; |
3586 | 3568 |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4306 GLint _y, | 4288 GLint _y, |
4307 GLsizei _width, | 4289 GLsizei _width, |
4308 GLsizei _height, | 4290 GLsizei _height, |
4309 GLenum _format, | 4291 GLenum _format, |
4310 GLenum _type, | 4292 GLenum _type, |
4311 uint32_t _pixels_shm_id, | 4293 uint32_t _pixels_shm_id, |
4312 uint32_t _pixels_shm_offset, | 4294 uint32_t _pixels_shm_offset, |
4313 uint32_t _result_shm_id, | 4295 uint32_t _result_shm_id, |
4314 uint32_t _result_shm_offset, | 4296 uint32_t _result_shm_offset, |
4315 GLboolean _async) { | 4297 GLboolean _async) { |
4316 static_cast<ValueType*>(cmd)->Init(_x, | 4298 static_cast<ValueType*>(cmd) |
4317 _y, | 4299 ->Init(_x, _y, _width, _height, _format, _type, _pixels_shm_id, |
4318 _width, | 4300 _pixels_shm_offset, _result_shm_id, _result_shm_offset, _async); |
4319 _height, | |
4320 _format, | |
4321 _type, | |
4322 _pixels_shm_id, | |
4323 _pixels_shm_offset, | |
4324 _result_shm_id, | |
4325 _result_shm_offset, | |
4326 _async); | |
4327 return NextCmdAddress<ValueType>(cmd); | 4301 return NextCmdAddress<ValueType>(cmd); |
4328 } | 4302 } |
4329 | 4303 |
4330 gpu::CommandHeader header; | 4304 gpu::CommandHeader header; |
4331 int32_t x; | 4305 int32_t x; |
4332 int32_t y; | 4306 int32_t y; |
4333 int32_t width; | 4307 int32_t width; |
4334 int32_t height; | 4308 int32_t height; |
4335 uint32_t format; | 4309 uint32_t format; |
4336 uint32_t type; | 4310 uint32_t type; |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4550 } | 4524 } |
4551 | 4525 |
4552 void* Set(void* cmd, | 4526 void* Set(void* cmd, |
4553 GLsizei _n, | 4527 GLsizei _n, |
4554 uint32_t _shaders_shm_id, | 4528 uint32_t _shaders_shm_id, |
4555 uint32_t _shaders_shm_offset, | 4529 uint32_t _shaders_shm_offset, |
4556 GLenum _binaryformat, | 4530 GLenum _binaryformat, |
4557 uint32_t _binary_shm_id, | 4531 uint32_t _binary_shm_id, |
4558 uint32_t _binary_shm_offset, | 4532 uint32_t _binary_shm_offset, |
4559 GLsizei _length) { | 4533 GLsizei _length) { |
4560 static_cast<ValueType*>(cmd)->Init(_n, | 4534 static_cast<ValueType*>(cmd)->Init(_n, _shaders_shm_id, _shaders_shm_offset, |
4561 _shaders_shm_id, | 4535 _binaryformat, _binary_shm_id, |
4562 _shaders_shm_offset, | 4536 _binary_shm_offset, _length); |
4563 _binaryformat, | |
4564 _binary_shm_id, | |
4565 _binary_shm_offset, | |
4566 _length); | |
4567 return NextCmdAddress<ValueType>(cmd); | 4537 return NextCmdAddress<ValueType>(cmd); |
4568 } | 4538 } |
4569 | 4539 |
4570 gpu::CommandHeader header; | 4540 gpu::CommandHeader header; |
4571 int32_t n; | 4541 int32_t n; |
4572 uint32_t shaders_shm_id; | 4542 uint32_t shaders_shm_id; |
4573 uint32_t shaders_shm_offset; | 4543 uint32_t shaders_shm_offset; |
4574 uint32_t binaryformat; | 4544 uint32_t binaryformat; |
4575 uint32_t binary_shm_id; | 4545 uint32_t binary_shm_id; |
4576 uint32_t binary_shm_offset; | 4546 uint32_t binary_shm_offset; |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4907 void* Set(void* cmd, | 4877 void* Set(void* cmd, |
4908 GLenum _target, | 4878 GLenum _target, |
4909 GLint _level, | 4879 GLint _level, |
4910 GLint _internalformat, | 4880 GLint _internalformat, |
4911 GLsizei _width, | 4881 GLsizei _width, |
4912 GLsizei _height, | 4882 GLsizei _height, |
4913 GLenum _format, | 4883 GLenum _format, |
4914 GLenum _type, | 4884 GLenum _type, |
4915 uint32_t _pixels_shm_id, | 4885 uint32_t _pixels_shm_id, |
4916 uint32_t _pixels_shm_offset) { | 4886 uint32_t _pixels_shm_offset) { |
4917 static_cast<ValueType*>(cmd)->Init(_target, | 4887 static_cast<ValueType*>(cmd)->Init(_target, _level, _internalformat, _width, |
4918 _level, | 4888 _height, _format, _type, _pixels_shm_id, |
4919 _internalformat, | |
4920 _width, | |
4921 _height, | |
4922 _format, | |
4923 _type, | |
4924 _pixels_shm_id, | |
4925 _pixels_shm_offset); | 4889 _pixels_shm_offset); |
4926 return NextCmdAddress<ValueType>(cmd); | 4890 return NextCmdAddress<ValueType>(cmd); |
4927 } | 4891 } |
4928 | 4892 |
4929 gpu::CommandHeader header; | 4893 gpu::CommandHeader header; |
4930 uint32_t target; | 4894 uint32_t target; |
4931 int32_t level; | 4895 int32_t level; |
4932 int32_t internalformat; | 4896 int32_t internalformat; |
4933 int32_t width; | 4897 int32_t width; |
4934 int32_t height; | 4898 int32_t height; |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5171 GLint _level, | 5135 GLint _level, |
5172 GLint _xoffset, | 5136 GLint _xoffset, |
5173 GLint _yoffset, | 5137 GLint _yoffset, |
5174 GLsizei _width, | 5138 GLsizei _width, |
5175 GLsizei _height, | 5139 GLsizei _height, |
5176 GLenum _format, | 5140 GLenum _format, |
5177 GLenum _type, | 5141 GLenum _type, |
5178 uint32_t _pixels_shm_id, | 5142 uint32_t _pixels_shm_id, |
5179 uint32_t _pixels_shm_offset, | 5143 uint32_t _pixels_shm_offset, |
5180 GLboolean _internal) { | 5144 GLboolean _internal) { |
5181 static_cast<ValueType*>(cmd)->Init(_target, | 5145 static_cast<ValueType*>(cmd) |
5182 _level, | 5146 ->Init(_target, _level, _xoffset, _yoffset, _width, _height, _format, |
5183 _xoffset, | 5147 _type, _pixels_shm_id, _pixels_shm_offset, _internal); |
5184 _yoffset, | |
5185 _width, | |
5186 _height, | |
5187 _format, | |
5188 _type, | |
5189 _pixels_shm_id, | |
5190 _pixels_shm_offset, | |
5191 _internal); | |
5192 return NextCmdAddress<ValueType>(cmd); | 5148 return NextCmdAddress<ValueType>(cmd); |
5193 } | 5149 } |
5194 | 5150 |
5195 gpu::CommandHeader header; | 5151 gpu::CommandHeader header; |
5196 uint32_t target; | 5152 uint32_t target; |
5197 int32_t level; | 5153 int32_t level; |
5198 int32_t xoffset; | 5154 int32_t xoffset; |
5199 int32_t yoffset; | 5155 int32_t yoffset; |
5200 int32_t width; | 5156 int32_t width; |
5201 int32_t height; | 5157 int32_t height; |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6608 GLint _srcX0, | 6564 GLint _srcX0, |
6609 GLint _srcY0, | 6565 GLint _srcY0, |
6610 GLint _srcX1, | 6566 GLint _srcX1, |
6611 GLint _srcY1, | 6567 GLint _srcY1, |
6612 GLint _dstX0, | 6568 GLint _dstX0, |
6613 GLint _dstY0, | 6569 GLint _dstY0, |
6614 GLint _dstX1, | 6570 GLint _dstX1, |
6615 GLint _dstY1, | 6571 GLint _dstY1, |
6616 GLbitfield _mask, | 6572 GLbitfield _mask, |
6617 GLenum _filter) { | 6573 GLenum _filter) { |
6618 static_cast<ValueType*>(cmd)->Init(_srcX0, | 6574 static_cast<ValueType*>(cmd)->Init(_srcX0, _srcY0, _srcX1, _srcY1, _dstX0, |
6619 _srcY0, | 6575 _dstY0, _dstX1, _dstY1, _mask, _filter); |
6620 _srcX1, | |
6621 _srcY1, | |
6622 _dstX0, | |
6623 _dstY0, | |
6624 _dstX1, | |
6625 _dstY1, | |
6626 _mask, | |
6627 _filter); | |
6628 return NextCmdAddress<ValueType>(cmd); | 6576 return NextCmdAddress<ValueType>(cmd); |
6629 } | 6577 } |
6630 | 6578 |
6631 gpu::CommandHeader header; | 6579 gpu::CommandHeader header; |
6632 int32_t srcX0; | 6580 int32_t srcX0; |
6633 int32_t srcY0; | 6581 int32_t srcY0; |
6634 int32_t srcX1; | 6582 int32_t srcX1; |
6635 int32_t srcY1; | 6583 int32_t srcY1; |
6636 int32_t dstX0; | 6584 int32_t dstX0; |
6637 int32_t dstY0; | 6585 int32_t dstY0; |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7392 result_shm_offset = _result_shm_offset; | 7340 result_shm_offset = _result_shm_offset; |
7393 } | 7341 } |
7394 | 7342 |
7395 void* Set(void* cmd, | 7343 void* Set(void* cmd, |
7396 GLuint _buffer_id, | 7344 GLuint _buffer_id, |
7397 GLsizei _count, | 7345 GLsizei _count, |
7398 GLenum _type, | 7346 GLenum _type, |
7399 GLuint _offset, | 7347 GLuint _offset, |
7400 uint32_t _result_shm_id, | 7348 uint32_t _result_shm_id, |
7401 uint32_t _result_shm_offset) { | 7349 uint32_t _result_shm_offset) { |
7402 static_cast<ValueType*>(cmd)->Init( | 7350 static_cast<ValueType*>(cmd)->Init(_buffer_id, _count, _type, _offset, |
7403 _buffer_id, _count, _type, _offset, _result_shm_id, _result_shm_offset); | 7351 _result_shm_id, _result_shm_offset); |
7404 return NextCmdAddress<ValueType>(cmd); | 7352 return NextCmdAddress<ValueType>(cmd); |
7405 } | 7353 } |
7406 | 7354 |
7407 gpu::CommandHeader header; | 7355 gpu::CommandHeader header; |
7408 uint32_t buffer_id; | 7356 uint32_t buffer_id; |
7409 int32_t count; | 7357 int32_t count; |
7410 uint32_t type; | 7358 uint32_t type; |
7411 uint32_t offset; | 7359 uint32_t offset; |
7412 uint32_t result_shm_id; | 7360 uint32_t result_shm_id; |
7413 uint32_t result_shm_offset; | 7361 uint32_t result_shm_offset; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7612 size = _size; | 7560 size = _size; |
7613 } | 7561 } |
7614 | 7562 |
7615 void* Set(void* cmd, | 7563 void* Set(void* cmd, |
7616 uint32_t _pnames_shm_id, | 7564 uint32_t _pnames_shm_id, |
7617 uint32_t _pnames_shm_offset, | 7565 uint32_t _pnames_shm_offset, |
7618 GLuint _count, | 7566 GLuint _count, |
7619 uint32_t _results_shm_id, | 7567 uint32_t _results_shm_id, |
7620 uint32_t _results_shm_offset, | 7568 uint32_t _results_shm_offset, |
7621 GLsizeiptr _size) { | 7569 GLsizeiptr _size) { |
7622 static_cast<ValueType*>(cmd)->Init(_pnames_shm_id, | 7570 static_cast<ValueType*>(cmd)->Init(_pnames_shm_id, _pnames_shm_offset, |
7623 _pnames_shm_offset, | 7571 _count, _results_shm_id, |
7624 _count, | 7572 _results_shm_offset, _size); |
7625 _results_shm_id, | |
7626 _results_shm_offset, | |
7627 _size); | |
7628 return NextCmdAddress<ValueType>(cmd); | 7573 return NextCmdAddress<ValueType>(cmd); |
7629 } | 7574 } |
7630 | 7575 |
7631 gpu::CommandHeader header; | 7576 gpu::CommandHeader header; |
7632 uint32_t pnames_shm_id; | 7577 uint32_t pnames_shm_id; |
7633 uint32_t pnames_shm_offset; | 7578 uint32_t pnames_shm_offset; |
7634 uint32_t count; | 7579 uint32_t count; |
7635 uint32_t results_shm_id; | 7580 uint32_t results_shm_id; |
7636 uint32_t results_shm_offset; | 7581 uint32_t results_shm_offset; |
7637 int32_t size; | 7582 int32_t size; |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7871 dest_type = _dest_type; | 7816 dest_type = _dest_type; |
7872 } | 7817 } |
7873 | 7818 |
7874 void* Set(void* cmd, | 7819 void* Set(void* cmd, |
7875 GLenum _target, | 7820 GLenum _target, |
7876 GLenum _source_id, | 7821 GLenum _source_id, |
7877 GLenum _dest_id, | 7822 GLenum _dest_id, |
7878 GLint _level, | 7823 GLint _level, |
7879 GLint _internalformat, | 7824 GLint _internalformat, |
7880 GLenum _dest_type) { | 7825 GLenum _dest_type) { |
7881 static_cast<ValueType*>(cmd)->Init( | 7826 static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id, _level, |
7882 _target, _source_id, _dest_id, _level, _internalformat, _dest_type); | 7827 _internalformat, _dest_type); |
7883 return NextCmdAddress<ValueType>(cmd); | 7828 return NextCmdAddress<ValueType>(cmd); |
7884 } | 7829 } |
7885 | 7830 |
7886 gpu::CommandHeader header; | 7831 gpu::CommandHeader header; |
7887 uint32_t target; | 7832 uint32_t target; |
7888 uint32_t source_id; | 7833 uint32_t source_id; |
7889 uint32_t dest_id; | 7834 uint32_t dest_id; |
7890 int32_t level; | 7835 int32_t level; |
7891 int32_t internalformat; | 7836 int32_t internalformat; |
7892 uint32_t dest_type; | 7837 uint32_t dest_type; |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8407 GLint _yoffset, | 8352 GLint _yoffset, |
8408 GLsizei _width, | 8353 GLsizei _width, |
8409 GLsizei _height, | 8354 GLsizei _height, |
8410 GLenum _format, | 8355 GLenum _format, |
8411 GLenum _type, | 8356 GLenum _type, |
8412 uint32_t _data_shm_id, | 8357 uint32_t _data_shm_id, |
8413 uint32_t _data_shm_offset, | 8358 uint32_t _data_shm_offset, |
8414 uint32_t _async_upload_token, | 8359 uint32_t _async_upload_token, |
8415 uint32_t _sync_data_shm_id, | 8360 uint32_t _sync_data_shm_id, |
8416 uint32_t _sync_data_shm_offset) { | 8361 uint32_t _sync_data_shm_offset) { |
8417 static_cast<ValueType*>(cmd)->Init(_target, | 8362 static_cast<ValueType*>(cmd) |
8418 _level, | 8363 ->Init(_target, _level, _xoffset, _yoffset, _width, _height, _format, |
8419 _xoffset, | 8364 _type, _data_shm_id, _data_shm_offset, _async_upload_token, |
8420 _yoffset, | 8365 _sync_data_shm_id, _sync_data_shm_offset); |
8421 _width, | |
8422 _height, | |
8423 _format, | |
8424 _type, | |
8425 _data_shm_id, | |
8426 _data_shm_offset, | |
8427 _async_upload_token, | |
8428 _sync_data_shm_id, | |
8429 _sync_data_shm_offset); | |
8430 return NextCmdAddress<ValueType>(cmd); | 8366 return NextCmdAddress<ValueType>(cmd); |
8431 } | 8367 } |
8432 | 8368 |
8433 gpu::CommandHeader header; | 8369 gpu::CommandHeader header; |
8434 uint32_t target; | 8370 uint32_t target; |
8435 int32_t level; | 8371 int32_t level; |
8436 int32_t xoffset; | 8372 int32_t xoffset; |
8437 int32_t yoffset; | 8373 int32_t yoffset; |
8438 int32_t width; | 8374 int32_t width; |
8439 int32_t height; | 8375 int32_t height; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8522 GLint _internalformat, | 8458 GLint _internalformat, |
8523 GLsizei _width, | 8459 GLsizei _width, |
8524 GLsizei _height, | 8460 GLsizei _height, |
8525 GLenum _format, | 8461 GLenum _format, |
8526 GLenum _type, | 8462 GLenum _type, |
8527 uint32_t _pixels_shm_id, | 8463 uint32_t _pixels_shm_id, |
8528 uint32_t _pixels_shm_offset, | 8464 uint32_t _pixels_shm_offset, |
8529 uint32_t _async_upload_token, | 8465 uint32_t _async_upload_token, |
8530 uint32_t _sync_data_shm_id, | 8466 uint32_t _sync_data_shm_id, |
8531 uint32_t _sync_data_shm_offset) { | 8467 uint32_t _sync_data_shm_offset) { |
8532 static_cast<ValueType*>(cmd)->Init(_target, | 8468 static_cast<ValueType*>(cmd) |
8533 _level, | 8469 ->Init(_target, _level, _internalformat, _width, _height, _format, |
8534 _internalformat, | 8470 _type, _pixels_shm_id, _pixels_shm_offset, _async_upload_token, |
8535 _width, | 8471 _sync_data_shm_id, _sync_data_shm_offset); |
8536 _height, | |
8537 _format, | |
8538 _type, | |
8539 _pixels_shm_id, | |
8540 _pixels_shm_offset, | |
8541 _async_upload_token, | |
8542 _sync_data_shm_id, | |
8543 _sync_data_shm_offset); | |
8544 return NextCmdAddress<ValueType>(cmd); | 8472 return NextCmdAddress<ValueType>(cmd); |
8545 } | 8473 } |
8546 | 8474 |
8547 gpu::CommandHeader header; | 8475 gpu::CommandHeader header; |
8548 uint32_t target; | 8476 uint32_t target; |
8549 int32_t level; | 8477 int32_t level; |
8550 int32_t internalformat; | 8478 int32_t internalformat; |
8551 int32_t width; | 8479 int32_t width; |
8552 int32_t height; | 8480 int32_t height; |
8553 uint32_t format; | 8481 uint32_t format; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8879 GLenum _plane_transform, | 8807 GLenum _plane_transform, |
8880 GLuint _overlay_texture_id, | 8808 GLuint _overlay_texture_id, |
8881 GLint _bounds_x, | 8809 GLint _bounds_x, |
8882 GLint _bounds_y, | 8810 GLint _bounds_y, |
8883 GLint _bounds_width, | 8811 GLint _bounds_width, |
8884 GLint _bounds_height, | 8812 GLint _bounds_height, |
8885 GLfloat _uv_x, | 8813 GLfloat _uv_x, |
8886 GLfloat _uv_y, | 8814 GLfloat _uv_y, |
8887 GLfloat _uv_width, | 8815 GLfloat _uv_width, |
8888 GLfloat _uv_height) { | 8816 GLfloat _uv_height) { |
8889 static_cast<ValueType*>(cmd)->Init(_plane_z_order, | 8817 static_cast<ValueType*>(cmd)->Init(_plane_z_order, _plane_transform, |
8890 _plane_transform, | 8818 _overlay_texture_id, _bounds_x, |
8891 _overlay_texture_id, | 8819 _bounds_y, _bounds_width, _bounds_height, |
8892 _bounds_x, | 8820 _uv_x, _uv_y, _uv_width, _uv_height); |
8893 _bounds_y, | |
8894 _bounds_width, | |
8895 _bounds_height, | |
8896 _uv_x, | |
8897 _uv_y, | |
8898 _uv_width, | |
8899 _uv_height); | |
8900 return NextCmdAddress<ValueType>(cmd); | 8821 return NextCmdAddress<ValueType>(cmd); |
8901 } | 8822 } |
8902 | 8823 |
8903 gpu::CommandHeader header; | 8824 gpu::CommandHeader header; |
8904 int32_t plane_z_order; | 8825 int32_t plane_z_order; |
8905 uint32_t plane_transform; | 8826 uint32_t plane_transform; |
8906 uint32_t overlay_texture_id; | 8827 uint32_t overlay_texture_id; |
8907 int32_t bounds_x; | 8828 int32_t bounds_x; |
8908 int32_t bounds_y; | 8829 int32_t bounds_y; |
8909 int32_t bounds_width; | 8830 int32_t bounds_width; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9034 } | 8955 } |
9035 | 8956 |
9036 gpu::CommandHeader header; | 8957 gpu::CommandHeader header; |
9037 }; | 8958 }; |
9038 | 8959 |
9039 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); | 8960 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); |
9040 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, | 8961 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, |
9041 OffsetOf_BlendBarrierKHR_header_not_0); | 8962 OffsetOf_BlendBarrierKHR_header_not_0); |
9042 | 8963 |
9043 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 8964 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |