| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 static const GLenum valid_index_type_table[] = { | 240 static const GLenum valid_index_type_table[] = { |
| 241 GL_UNSIGNED_BYTE, | 241 GL_UNSIGNED_BYTE, |
| 242 GL_UNSIGNED_SHORT, | 242 GL_UNSIGNED_SHORT, |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 static const GLenum valid_matrix_mode_table[] = { | 245 static const GLenum valid_matrix_mode_table[] = { |
| 246 GL_PATH_PROJECTION_CHROMIUM, | 246 GL_PATH_PROJECTION_CHROMIUM, |
| 247 GL_PATH_MODELVIEW_CHROMIUM, | 247 GL_PATH_MODELVIEW_CHROMIUM, |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 static const GLenum valid_path_fill_mode_table[] = { |
| 251 GL_INVERT, |
| 252 GL_COUNT_UP_CHROMIUM, |
| 253 GL_COUNT_DOWN_CHROMIUM, |
| 254 }; |
| 255 |
| 256 static const GLenum valid_path_parameter_table[] = { |
| 257 GL_PATH_STROKE_WIDTH_CHROMIUM, |
| 258 GL_PATH_INITIAL_END_CAP_CHROMIUM, |
| 259 GL_PATH_TERMINAL_END_CAP_CHROMIUM, |
| 260 GL_PATH_JOIN_STYLE_CHROMIUM, |
| 261 GL_PATH_MITER_LIMIT_CHROMIUM, |
| 262 }; |
| 263 |
| 264 static const GLint valid_path_parameter_cap_values_table[] = { |
| 265 GL_FLAT, |
| 266 GL_SQUARE_CHROMIUM, |
| 267 GL_ROUND_CHROMIUM, |
| 268 }; |
| 269 |
| 270 static const GLint valid_path_parameter_join_values_table[] = { |
| 271 GL_MITER_REVERT_CHROMIUM, |
| 272 GL_BEVEL_CHROMIUM, |
| 273 GL_ROUND_CHROMIUM, |
| 274 }; |
| 275 |
| 250 static const GLenum valid_pixel_store_table[] = { | 276 static const GLenum valid_pixel_store_table[] = { |
| 251 GL_PACK_ALIGNMENT, | 277 GL_PACK_ALIGNMENT, |
| 252 GL_UNPACK_ALIGNMENT, | 278 GL_UNPACK_ALIGNMENT, |
| 253 GL_UNPACK_FLIP_Y_CHROMIUM, | 279 GL_UNPACK_FLIP_Y_CHROMIUM, |
| 254 GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, | 280 GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, |
| 255 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM, | 281 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM, |
| 256 }; | 282 }; |
| 257 | 283 |
| 258 static const GLint valid_pixel_store_alignment_table[] = { | 284 static const GLint valid_pixel_store_alignment_table[] = { |
| 259 1, | 285 1, |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 arraysize(valid_frame_buffer_target_table)), | 565 arraysize(valid_frame_buffer_target_table)), |
| 540 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)), | 566 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)), |
| 541 get_max_index_type(valid_get_max_index_type_table, | 567 get_max_index_type(valid_get_max_index_type_table, |
| 542 arraysize(valid_get_max_index_type_table)), | 568 arraysize(valid_get_max_index_type_table)), |
| 543 get_tex_param_target(valid_get_tex_param_target_table, | 569 get_tex_param_target(valid_get_tex_param_target_table, |
| 544 arraysize(valid_get_tex_param_target_table)), | 570 arraysize(valid_get_tex_param_target_table)), |
| 545 hint_mode(valid_hint_mode_table, arraysize(valid_hint_mode_table)), | 571 hint_mode(valid_hint_mode_table, arraysize(valid_hint_mode_table)), |
| 546 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)), | 572 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)), |
| 547 index_type(valid_index_type_table, arraysize(valid_index_type_table)), | 573 index_type(valid_index_type_table, arraysize(valid_index_type_table)), |
| 548 matrix_mode(valid_matrix_mode_table, arraysize(valid_matrix_mode_table)), | 574 matrix_mode(valid_matrix_mode_table, arraysize(valid_matrix_mode_table)), |
| 575 path_fill_mode(valid_path_fill_mode_table, |
| 576 arraysize(valid_path_fill_mode_table)), |
| 577 path_parameter(valid_path_parameter_table, |
| 578 arraysize(valid_path_parameter_table)), |
| 579 path_parameter_cap_values( |
| 580 valid_path_parameter_cap_values_table, |
| 581 arraysize(valid_path_parameter_cap_values_table)), |
| 582 path_parameter_join_values( |
| 583 valid_path_parameter_join_values_table, |
| 584 arraysize(valid_path_parameter_join_values_table)), |
| 549 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)), | 585 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)), |
| 550 pixel_store_alignment(valid_pixel_store_alignment_table, | 586 pixel_store_alignment(valid_pixel_store_alignment_table, |
| 551 arraysize(valid_pixel_store_alignment_table)), | 587 arraysize(valid_pixel_store_alignment_table)), |
| 552 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)), | 588 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)), |
| 553 program_parameter(valid_program_parameter_table, | 589 program_parameter(valid_program_parameter_table, |
| 554 arraysize(valid_program_parameter_table)), | 590 arraysize(valid_program_parameter_table)), |
| 555 query_object_parameter(valid_query_object_parameter_table, | 591 query_object_parameter(valid_query_object_parameter_table, |
| 556 arraysize(valid_query_object_parameter_table)), | 592 arraysize(valid_query_object_parameter_table)), |
| 557 query_parameter(valid_query_parameter_table, | 593 query_parameter(valid_query_parameter_table, |
| 558 arraysize(valid_query_parameter_table)), | 594 arraysize(valid_query_parameter_table)), |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 arraysize(valid_vertex_attrib_size_table)), | 643 arraysize(valid_vertex_attrib_size_table)), |
| 608 vertex_attrib_type(valid_vertex_attrib_type_table, | 644 vertex_attrib_type(valid_vertex_attrib_type_table, |
| 609 arraysize(valid_vertex_attrib_type_table)), | 645 arraysize(valid_vertex_attrib_type_table)), |
| 610 vertex_attribute(valid_vertex_attribute_table, | 646 vertex_attribute(valid_vertex_attribute_table, |
| 611 arraysize(valid_vertex_attribute_table)), | 647 arraysize(valid_vertex_attribute_table)), |
| 612 vertex_pointer(valid_vertex_pointer_table, | 648 vertex_pointer(valid_vertex_pointer_table, |
| 613 arraysize(valid_vertex_pointer_table)) { | 649 arraysize(valid_vertex_pointer_table)) { |
| 614 } | 650 } |
| 615 | 651 |
| 616 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 652 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |