| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "gpu/command_buffer/service/feature_info.h" | 5 #include "gpu/command_buffer/service/feature_info.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_EXTERNAL_OES); | 1005 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_EXTERNAL_OES); |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 if (extensions.Contains("GL_OES_compressed_ETC1_RGB8_texture")) { | 1008 if (extensions.Contains("GL_OES_compressed_ETC1_RGB8_texture")) { |
| 1009 AddExtensionString("GL_OES_compressed_ETC1_RGB8_texture"); | 1009 AddExtensionString("GL_OES_compressed_ETC1_RGB8_texture"); |
| 1010 feature_flags_.oes_compressed_etc1_rgb8_texture = true; | 1010 feature_flags_.oes_compressed_etc1_rgb8_texture = true; |
| 1011 validators_.compressed_texture_format.AddValue(GL_ETC1_RGB8_OES); | 1011 validators_.compressed_texture_format.AddValue(GL_ETC1_RGB8_OES); |
| 1012 validators_.texture_internal_format_storage.AddValue(GL_ETC1_RGB8_OES); | 1012 validators_.texture_internal_format_storage.AddValue(GL_ETC1_RGB8_OES); |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 // TODO(kainino): Once we have a way to query whether ANGLE is exposing |
| 1016 // native support for ETC2 textures, require that here. |
| 1017 if (gl_version_info_->is_es3) { |
| 1018 AddExtensionString("GL_CHROMIUM_compressed_texture_es3_0"); |
| 1019 validators_.UpdateES30CompressedTextureFormats(); |
| 1020 } |
| 1021 |
| 1015 if (extensions.Contains("GL_AMD_compressed_ATC_texture")) { | 1022 if (extensions.Contains("GL_AMD_compressed_ATC_texture")) { |
| 1016 AddExtensionString("GL_AMD_compressed_ATC_texture"); | 1023 AddExtensionString("GL_AMD_compressed_ATC_texture"); |
| 1017 validators_.compressed_texture_format.AddValue( | 1024 validators_.compressed_texture_format.AddValue( |
| 1018 GL_ATC_RGB_AMD); | 1025 GL_ATC_RGB_AMD); |
| 1019 validators_.compressed_texture_format.AddValue( | 1026 validators_.compressed_texture_format.AddValue( |
| 1020 GL_ATC_RGBA_EXPLICIT_ALPHA_AMD); | 1027 GL_ATC_RGBA_EXPLICIT_ALPHA_AMD); |
| 1021 validators_.compressed_texture_format.AddValue( | 1028 validators_.compressed_texture_format.AddValue( |
| 1022 GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD); | 1029 GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD); |
| 1023 | 1030 |
| 1024 validators_.texture_internal_format_storage.AddValue( | 1031 validators_.texture_internal_format_storage.AddValue( |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1525 if (pos == std::string::npos) { | 1532 if (pos == std::string::npos) { |
| 1526 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1533 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1527 } | 1534 } |
| 1528 } | 1535 } |
| 1529 | 1536 |
| 1530 FeatureInfo::~FeatureInfo() { | 1537 FeatureInfo::~FeatureInfo() { |
| 1531 } | 1538 } |
| 1532 | 1539 |
| 1533 } // namespace gles2 | 1540 } // namespace gles2 |
| 1534 } // namespace gpu | 1541 } // namespace gpu |
| OLD | NEW |