| 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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 arraysize(valid_texture_internal_format_storage_table_es3)); | 1495 arraysize(valid_texture_internal_format_storage_table_es3)); |
| 1496 texture_parameter.AddValues(valid_texture_parameter_table_es3, | 1496 texture_parameter.AddValues(valid_texture_parameter_table_es3, |
| 1497 arraysize(valid_texture_parameter_table_es3)); | 1497 arraysize(valid_texture_parameter_table_es3)); |
| 1498 texture_stencil_renderable_internal_format.AddValues( | 1498 texture_stencil_renderable_internal_format.AddValues( |
| 1499 valid_texture_stencil_renderable_internal_format_table_es3, | 1499 valid_texture_stencil_renderable_internal_format_table_es3, |
| 1500 arraysize(valid_texture_stencil_renderable_internal_format_table_es3)); | 1500 arraysize(valid_texture_stencil_renderable_internal_format_table_es3)); |
| 1501 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, | 1501 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, |
| 1502 arraysize(valid_vertex_attrib_type_table_es3)); | 1502 arraysize(valid_vertex_attrib_type_table_es3)); |
| 1503 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, | 1503 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, |
| 1504 arraysize(valid_vertex_attribute_table_es3)); | 1504 arraysize(valid_vertex_attribute_table_es3)); |
| 1505 UpdateETCCompressedTextureFormats(); | |
| 1506 } | 1505 } |
| 1507 | 1506 |
| 1508 void Validators::UpdateETCCompressedTextureFormats() { | 1507 void Validators::UpdateETCCompressedTextureFormats() { |
| 1509 compressed_texture_format.AddValue(GL_COMPRESSED_R11_EAC); | 1508 compressed_texture_format.AddValue(GL_COMPRESSED_R11_EAC); |
| 1510 compressed_texture_format.AddValue(GL_COMPRESSED_SIGNED_R11_EAC); | 1509 compressed_texture_format.AddValue(GL_COMPRESSED_SIGNED_R11_EAC); |
| 1511 compressed_texture_format.AddValue(GL_COMPRESSED_RG11_EAC); | 1510 compressed_texture_format.AddValue(GL_COMPRESSED_RG11_EAC); |
| 1512 compressed_texture_format.AddValue(GL_COMPRESSED_SIGNED_RG11_EAC); | 1511 compressed_texture_format.AddValue(GL_COMPRESSED_SIGNED_RG11_EAC); |
| 1513 compressed_texture_format.AddValue(GL_COMPRESSED_RGB8_ETC2); | 1512 compressed_texture_format.AddValue(GL_COMPRESSED_RGB8_ETC2); |
| 1514 compressed_texture_format.AddValue(GL_COMPRESSED_SRGB8_ETC2); | 1513 compressed_texture_format.AddValue(GL_COMPRESSED_SRGB8_ETC2); |
| 1515 compressed_texture_format.AddValue( | 1514 compressed_texture_format.AddValue( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1526 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); | 1525 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); |
| 1527 texture_internal_format_storage.AddValue( | 1526 texture_internal_format_storage.AddValue( |
| 1528 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); | 1527 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); |
| 1529 texture_internal_format_storage.AddValue( | 1528 texture_internal_format_storage.AddValue( |
| 1530 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); | 1529 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); |
| 1531 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); | 1530 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); |
| 1532 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); | 1531 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); |
| 1533 } | 1532 } |
| 1534 | 1533 |
| 1535 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 1534 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |