| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, | 168 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, |
| 169 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, | 169 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, |
| 170 GL_COMPRESSED_RGBA8_ETC2_EAC, | 170 GL_COMPRESSED_RGBA8_ETC2_EAC, |
| 171 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, | 171 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 static const GLenum valid_coverage_modulation_components_table[] = { | 174 static const GLenum valid_coverage_modulation_components_table[] = { |
| 175 GL_RGB, GL_RGBA, GL_ALPHA, GL_NONE, | 175 GL_RGB, GL_RGBA, GL_ALPHA, GL_NONE, |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 static const GLenum valid_custom_matrix_parameter_table[] = { |
| 179 GL_CUSTOM_MATRIX_STREAM_TEXTURE_CHROMIUM, |
| 180 }; |
| 181 |
| 178 bool Validators::DrawModeValidator::IsValid(const GLenum value) const { | 182 bool Validators::DrawModeValidator::IsValid(const GLenum value) const { |
| 179 switch (value) { | 183 switch (value) { |
| 180 case GL_POINTS: | 184 case GL_POINTS: |
| 181 case GL_LINE_STRIP: | 185 case GL_LINE_STRIP: |
| 182 case GL_LINE_LOOP: | 186 case GL_LINE_LOOP: |
| 183 case GL_LINES: | 187 case GL_LINES: |
| 184 case GL_TRIANGLE_STRIP: | 188 case GL_TRIANGLE_STRIP: |
| 185 case GL_TRIANGLE_FAN: | 189 case GL_TRIANGLE_FAN: |
| 186 case GL_TRIANGLES: | 190 case GL_TRIANGLES: |
| 187 return true; | 191 return true; |
| (...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1364 | 1368 |
| 1365 Validators::Validators() | 1369 Validators::Validators() |
| 1366 : attachment(valid_attachment_table, arraysize(valid_attachment_table)), | 1370 : attachment(valid_attachment_table, arraysize(valid_attachment_table)), |
| 1367 bufferfi(valid_bufferfi_table, arraysize(valid_bufferfi_table)), | 1371 bufferfi(valid_bufferfi_table, arraysize(valid_bufferfi_table)), |
| 1368 bufferuiv(valid_bufferuiv_table, arraysize(valid_bufferuiv_table)), | 1372 bufferuiv(valid_bufferuiv_table, arraysize(valid_bufferuiv_table)), |
| 1369 capability(valid_capability_table, arraysize(valid_capability_table)), | 1373 capability(valid_capability_table, arraysize(valid_capability_table)), |
| 1370 compressed_texture_format(), | 1374 compressed_texture_format(), |
| 1371 coverage_modulation_components( | 1375 coverage_modulation_components( |
| 1372 valid_coverage_modulation_components_table, | 1376 valid_coverage_modulation_components_table, |
| 1373 arraysize(valid_coverage_modulation_components_table)), | 1377 arraysize(valid_coverage_modulation_components_table)), |
| 1378 custom_matrix_parameter(valid_custom_matrix_parameter_table, |
| 1379 arraysize(valid_custom_matrix_parameter_table)), |
| 1374 dst_blend_factor(valid_dst_blend_factor_table, | 1380 dst_blend_factor(valid_dst_blend_factor_table, |
| 1375 arraysize(valid_dst_blend_factor_table)), | 1381 arraysize(valid_dst_blend_factor_table)), |
| 1376 equation(valid_equation_table, arraysize(valid_equation_table)), | 1382 equation(valid_equation_table, arraysize(valid_equation_table)), |
| 1377 frame_buffer_parameter(valid_frame_buffer_parameter_table, | 1383 frame_buffer_parameter(valid_frame_buffer_parameter_table, |
| 1378 arraysize(valid_frame_buffer_parameter_table)), | 1384 arraysize(valid_frame_buffer_parameter_table)), |
| 1379 frame_buffer_target(valid_frame_buffer_target_table, | 1385 frame_buffer_target(valid_frame_buffer_target_table, |
| 1380 arraysize(valid_frame_buffer_target_table)), | 1386 arraysize(valid_frame_buffer_target_table)), |
| 1381 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)), | 1387 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)), |
| 1382 get_tex_param_target(valid_get_tex_param_target_table, | 1388 get_tex_param_target(valid_get_tex_param_target_table, |
| 1383 arraysize(valid_get_tex_param_target_table)), | 1389 arraysize(valid_get_tex_param_target_table)), |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1508 texture_stencil_renderable_internal_format.AddValues( | 1514 texture_stencil_renderable_internal_format.AddValues( |
| 1509 valid_texture_stencil_renderable_internal_format_table_es3, | 1515 valid_texture_stencil_renderable_internal_format_table_es3, |
| 1510 arraysize(valid_texture_stencil_renderable_internal_format_table_es3)); | 1516 arraysize(valid_texture_stencil_renderable_internal_format_table_es3)); |
| 1511 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, | 1517 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, |
| 1512 arraysize(valid_vertex_attrib_type_table_es3)); | 1518 arraysize(valid_vertex_attrib_type_table_es3)); |
| 1513 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, | 1519 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, |
| 1514 arraysize(valid_vertex_attribute_table_es3)); | 1520 arraysize(valid_vertex_attribute_table_es3)); |
| 1515 } | 1521 } |
| 1516 | 1522 |
| 1517 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 1523 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |