| 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 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 GL_RGBA8_SNORM, | 1209 GL_RGBA8_SNORM, |
| 1210 GL_RGB5_A1, | 1210 GL_RGB5_A1, |
| 1211 GL_RGBA4, | 1211 GL_RGBA4, |
| 1212 GL_RGB10_A2, | 1212 GL_RGB10_A2, |
| 1213 GL_RGBA16F, | 1213 GL_RGBA16F, |
| 1214 GL_RGB_YCRCB_420_CHROMIUM, | 1214 GL_RGB_YCRCB_420_CHROMIUM, |
| 1215 GL_RGB_YCBCR_422_CHROMIUM, | 1215 GL_RGB_YCBCR_422_CHROMIUM, |
| 1216 GL_RGB_YCBCR_420V_CHROMIUM, | 1216 GL_RGB_YCBCR_420V_CHROMIUM, |
| 1217 }; | 1217 }; |
| 1218 | 1218 |
| 1219 bool Validators::TextureSrgbDecodeExtValidator::IsValid( |
| 1220 const GLenum value) const { |
| 1221 switch (value) { |
| 1222 case GL_DECODE_EXT: |
| 1223 case GL_SKIP_DECODE_EXT: |
| 1224 return true; |
| 1225 } |
| 1226 return false; |
| 1227 }; |
| 1228 |
| 1219 static const GLenum | 1229 static const GLenum |
| 1220 valid_texture_stencil_renderable_internal_format_table_es3[] = { | 1230 valid_texture_stencil_renderable_internal_format_table_es3[] = { |
| 1221 GL_STENCIL_INDEX8, GL_DEPTH24_STENCIL8, GL_DEPTH32F_STENCIL8, | 1231 GL_STENCIL_INDEX8, GL_DEPTH24_STENCIL8, GL_DEPTH32F_STENCIL8, |
| 1222 }; | 1232 }; |
| 1223 | 1233 |
| 1224 bool Validators::TextureSwizzleValidator::IsValid(const GLenum value) const { | 1234 bool Validators::TextureSwizzleValidator::IsValid(const GLenum value) const { |
| 1225 switch (value) { | 1235 switch (value) { |
| 1226 case GL_RED: | 1236 case GL_RED: |
| 1227 case GL_GREEN: | 1237 case GL_GREEN: |
| 1228 case GL_BLUE: | 1238 case GL_BLUE: |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1525 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); | 1535 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); |
| 1526 texture_internal_format_storage.AddValue( | 1536 texture_internal_format_storage.AddValue( |
| 1527 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); | 1537 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); |
| 1528 texture_internal_format_storage.AddValue( | 1538 texture_internal_format_storage.AddValue( |
| 1529 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); | 1539 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); |
| 1530 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); | 1540 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); |
| 1531 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); | 1541 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); |
| 1532 } | 1542 } |
| 1533 | 1543 |
| 1534 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 1544 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |