| 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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 case GL_TRANSLATE_3D_CHROMIUM: | 648 case GL_TRANSLATE_3D_CHROMIUM: |
| 649 case GL_AFFINE_2D_CHROMIUM: | 649 case GL_AFFINE_2D_CHROMIUM: |
| 650 case GL_AFFINE_3D_CHROMIUM: | 650 case GL_AFFINE_3D_CHROMIUM: |
| 651 case GL_TRANSPOSE_AFFINE_2D_CHROMIUM: | 651 case GL_TRANSPOSE_AFFINE_2D_CHROMIUM: |
| 652 case GL_TRANSPOSE_AFFINE_3D_CHROMIUM: | 652 case GL_TRANSPOSE_AFFINE_3D_CHROMIUM: |
| 653 return true; | 653 return true; |
| 654 } | 654 } |
| 655 return false; | 655 return false; |
| 656 }; | 656 }; |
| 657 | 657 |
| 658 bool Validators::PerformanceHintModeValidator::IsValid( |
| 659 const GLenum value) const { |
| 660 switch (value) { |
| 661 case GL_DEFAULT_POWER_CHROMIUM: |
| 662 case GL_LOW_POWER_CHROMIUM: |
| 663 case GL_HIGH_PERFORMANCE_CHROMIUM: |
| 664 return true; |
| 665 } |
| 666 return false; |
| 667 }; |
| 668 |
| 658 static const GLenum valid_pixel_store_table[] = { | 669 static const GLenum valid_pixel_store_table[] = { |
| 659 GL_PACK_ALIGNMENT, GL_UNPACK_ALIGNMENT, | 670 GL_PACK_ALIGNMENT, GL_UNPACK_ALIGNMENT, |
| 660 }; | 671 }; |
| 661 | 672 |
| 662 static const GLenum valid_pixel_store_table_es3[] = { | 673 static const GLenum valid_pixel_store_table_es3[] = { |
| 663 GL_PACK_ROW_LENGTH, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, | 674 GL_PACK_ROW_LENGTH, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, |
| 664 GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS, | 675 GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS, |
| 665 GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES, | 676 GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES, |
| 666 }; | 677 }; |
| 667 | 678 |
| (...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1535 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); | 1546 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); |
| 1536 texture_internal_format_storage.AddValue( | 1547 texture_internal_format_storage.AddValue( |
| 1537 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); | 1548 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); |
| 1538 texture_internal_format_storage.AddValue( | 1549 texture_internal_format_storage.AddValue( |
| 1539 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); | 1550 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); |
| 1540 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); | 1551 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); |
| 1541 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); | 1552 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); |
| 1542 } | 1553 } |
| 1543 | 1554 |
| 1544 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 1555 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |