Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 169403005: command_buffer: Implement path rendering functions for CHROMIUM_path_rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nv-pr-02-texgen
Patch Set: rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 GL_MAP_INVALIDATE_BUFFER_BIT, 470 GL_MAP_INVALIDATE_BUFFER_BIT,
471 GL_MAP_FLUSH_EXPLICIT_BIT, 471 GL_MAP_FLUSH_EXPLICIT_BIT,
472 GL_MAP_UNSYNCHRONIZED_BIT, 472 GL_MAP_UNSYNCHRONIZED_BIT,
473 }; 473 };
474 474
475 static const GLenum valid_matrix_mode_table[] = { 475 static const GLenum valid_matrix_mode_table[] = {
476 GL_PATH_PROJECTION_CHROMIUM, 476 GL_PATH_PROJECTION_CHROMIUM,
477 GL_PATH_MODELVIEW_CHROMIUM, 477 GL_PATH_MODELVIEW_CHROMIUM,
478 }; 478 };
479 479
480 static const GLenum valid_path_coord_type_table[] = {
481 GL_BYTE,
482 GL_UNSIGNED_BYTE,
483 GL_SHORT,
484 GL_UNSIGNED_SHORT,
485 GL_FLOAT,
486 };
487
488 static const GLenum valid_path_cover_mode_table[] = {
489 GL_CONVEX_HULL_CHROMIUM,
490 GL_BOUNDING_BOX_CHROMIUM,
491 };
492
493 static const GLenum valid_path_fill_mode_table[] = {
494 GL_INVERT,
495 GL_COUNT_UP_CHROMIUM,
496 GL_COUNT_DOWN_CHROMIUM,
497 };
498
499 static const GLenum valid_path_parameter_table[] = {
500 GL_PATH_STROKE_WIDTH_CHROMIUM,
501 GL_PATH_END_CAPS_CHROMIUM,
502 GL_PATH_JOIN_STYLE_CHROMIUM,
503 GL_PATH_MITER_LIMIT_CHROMIUM,
504 GL_PATH_STROKE_BOUND_CHROMIUM,
505 };
506
507 static const GLint valid_path_parameter_cap_values_table[] = {
508 GL_FLAT,
509 GL_SQUARE_CHROMIUM,
510 GL_ROUND_CHROMIUM,
511 };
512
513 static const GLint valid_path_parameter_join_values_table[] = {
514 GL_MITER_REVERT_CHROMIUM,
515 GL_BEVEL_CHROMIUM,
516 GL_ROUND_CHROMIUM,
517 };
518
480 static const GLenum valid_pixel_store_table[] = { 519 static const GLenum valid_pixel_store_table[] = {
481 GL_PACK_ALIGNMENT, 520 GL_PACK_ALIGNMENT,
482 GL_UNPACK_ALIGNMENT, 521 GL_UNPACK_ALIGNMENT,
483 GL_UNPACK_FLIP_Y_CHROMIUM, 522 GL_UNPACK_FLIP_Y_CHROMIUM,
484 GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, 523 GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
485 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM, 524 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
486 }; 525 };
487 526
488 static const GLenum valid_pixel_store_table_es3[] = { 527 static const GLenum valid_pixel_store_table_es3[] = {
489 GL_PACK_ROW_LENGTH, 528 GL_PACK_ROW_LENGTH,
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 arraysize(valid_indexed_g_l_state_table)), 1184 arraysize(valid_indexed_g_l_state_table)),
1146 internal_format_parameter( 1185 internal_format_parameter(
1147 valid_internal_format_parameter_table, 1186 valid_internal_format_parameter_table,
1148 arraysize(valid_internal_format_parameter_table)), 1187 arraysize(valid_internal_format_parameter_table)),
1149 invalidate_frame_buffer_target( 1188 invalidate_frame_buffer_target(
1150 valid_invalidate_frame_buffer_target_table, 1189 valid_invalidate_frame_buffer_target_table,
1151 arraysize(valid_invalidate_frame_buffer_target_table)), 1190 arraysize(valid_invalidate_frame_buffer_target_table)),
1152 map_buffer_access(valid_map_buffer_access_table, 1191 map_buffer_access(valid_map_buffer_access_table,
1153 arraysize(valid_map_buffer_access_table)), 1192 arraysize(valid_map_buffer_access_table)),
1154 matrix_mode(valid_matrix_mode_table, arraysize(valid_matrix_mode_table)), 1193 matrix_mode(valid_matrix_mode_table, arraysize(valid_matrix_mode_table)),
1194 path_coord_type(valid_path_coord_type_table,
1195 arraysize(valid_path_coord_type_table)),
1196 path_cover_mode(valid_path_cover_mode_table,
1197 arraysize(valid_path_cover_mode_table)),
1198 path_fill_mode(valid_path_fill_mode_table,
1199 arraysize(valid_path_fill_mode_table)),
1200 path_parameter(valid_path_parameter_table,
1201 arraysize(valid_path_parameter_table)),
1202 path_parameter_cap_values(
1203 valid_path_parameter_cap_values_table,
1204 arraysize(valid_path_parameter_cap_values_table)),
1205 path_parameter_join_values(
1206 valid_path_parameter_join_values_table,
1207 arraysize(valid_path_parameter_join_values_table)),
1155 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)), 1208 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)),
1156 pixel_store_alignment(valid_pixel_store_alignment_table, 1209 pixel_store_alignment(valid_pixel_store_alignment_table,
1157 arraysize(valid_pixel_store_alignment_table)), 1210 arraysize(valid_pixel_store_alignment_table)),
1158 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)), 1211 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)),
1159 program_parameter(valid_program_parameter_table, 1212 program_parameter(valid_program_parameter_table,
1160 arraysize(valid_program_parameter_table)), 1213 arraysize(valid_program_parameter_table)),
1161 query_object_parameter(valid_query_object_parameter_table, 1214 query_object_parameter(valid_query_object_parameter_table,
1162 arraysize(valid_query_object_parameter_table)), 1215 arraysize(valid_query_object_parameter_table)),
1163 query_parameter(valid_query_parameter_table, 1216 query_parameter(valid_query_parameter_table,
1164 arraysize(valid_query_parameter_table)), 1217 arraysize(valid_query_parameter_table)),
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 arraysize(valid_texture_internal_format_storage_table_es3)); 1366 arraysize(valid_texture_internal_format_storage_table_es3));
1314 texture_parameter.AddValues(valid_texture_parameter_table_es3, 1367 texture_parameter.AddValues(valid_texture_parameter_table_es3,
1315 arraysize(valid_texture_parameter_table_es3)); 1368 arraysize(valid_texture_parameter_table_es3));
1316 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, 1369 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3,
1317 arraysize(valid_vertex_attrib_type_table_es3)); 1370 arraysize(valid_vertex_attrib_type_table_es3));
1318 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, 1371 vertex_attribute.AddValues(valid_vertex_attribute_table_es3,
1319 arraysize(valid_vertex_attribute_table_es3)); 1372 arraysize(valid_vertex_attribute_table_es3));
1320 } 1373 }
1321 1374
1322 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_ 1375 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698