Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: gpu/command_buffer/service/feature_info.cc

Issue 2481403002: disable ETC textures on ANGLE for now (Closed)
Patch Set: update test expectation Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 1002
1003 if (extensions.Contains("GL_OES_compressed_ETC1_RGB8_texture")) { 1003 if (extensions.Contains("GL_OES_compressed_ETC1_RGB8_texture")) {
1004 AddExtensionString("GL_OES_compressed_ETC1_RGB8_texture"); 1004 AddExtensionString("GL_OES_compressed_ETC1_RGB8_texture");
1005 feature_flags_.oes_compressed_etc1_rgb8_texture = true; 1005 feature_flags_.oes_compressed_etc1_rgb8_texture = true;
1006 validators_.compressed_texture_format.AddValue(GL_ETC1_RGB8_OES); 1006 validators_.compressed_texture_format.AddValue(GL_ETC1_RGB8_OES);
1007 validators_.texture_internal_format_storage.AddValue(GL_ETC1_RGB8_OES); 1007 validators_.texture_internal_format_storage.AddValue(GL_ETC1_RGB8_OES);
1008 } 1008 }
1009 1009
1010 // TODO(kainino): Once we have a way to query whether ANGLE is exposing 1010 // TODO(kainino): Once we have a way to query whether ANGLE is exposing
1011 // native support for ETC2 textures, require that here. 1011 // native support for ETC2 textures, require that here.
1012 if (gl_version_info_->is_es3) { 1012 if (gl_version_info_->is_es3 && !gl_version_info_->is_angle) {
1013 AddExtensionString("GL_CHROMIUM_compressed_texture_etc"); 1013 AddExtensionString("GL_CHROMIUM_compressed_texture_etc");
1014 validators_.UpdateETCCompressedTextureFormats(); 1014 validators_.UpdateETCCompressedTextureFormats();
1015 } 1015 }
1016 1016
1017 if (extensions.Contains("GL_AMD_compressed_ATC_texture")) { 1017 if (extensions.Contains("GL_AMD_compressed_ATC_texture")) {
1018 AddExtensionString("GL_AMD_compressed_ATC_texture"); 1018 AddExtensionString("GL_AMD_compressed_ATC_texture");
1019 validators_.compressed_texture_format.AddValue( 1019 validators_.compressed_texture_format.AddValue(
1020 GL_ATC_RGB_AMD); 1020 GL_ATC_RGB_AMD);
1021 validators_.compressed_texture_format.AddValue( 1021 validators_.compressed_texture_format.AddValue(
1022 GL_ATC_RGBA_EXPLICIT_ALPHA_AMD); 1022 GL_ATC_RGBA_EXPLICIT_ALPHA_AMD);
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 if (pos == std::string::npos) { 1545 if (pos == std::string::npos) {
1546 extensions_ += (extensions_.empty() ? "" : " ") + str; 1546 extensions_ += (extensions_.empty() ? "" : " ") + str;
1547 } 1547 }
1548 } 1548 }
1549 1549
1550 FeatureInfo::~FeatureInfo() { 1550 FeatureInfo::~FeatureInfo() {
1551 } 1551 }
1552 1552
1553 } // namespace gles2 1553 } // namespace gles2
1554 } // namespace gpu 1554 } // namespace gpu
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698