Index: gpu/command_buffer/service/feature_info.cc |
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc |
index b488318687aa8e0f49e8c5199193548d2332c183..72bcbd46b2076fc5fee224e18969755cb4ce60da 100644 |
--- a/gpu/command_buffer/service/feature_info.cc |
+++ b/gpu/command_buffer/service/feature_info.cc |
@@ -618,6 +618,28 @@ void FeatureInfo::InitializeFeatures() { |
validators_.compressed_texture_format.AddValue(GL_ETC1_RGB8_OES); |
} |
+ if (extensions.Contains("GL_AMD_compressed_ATC_texture")) { |
+ AddExtensionString("GL_AMD_compressed_ATC_texture"); |
+ validators_.compressed_texture_format.AddValue( |
+ GL_ATC_RGB_AMD); |
+ validators_.compressed_texture_format.AddValue( |
+ GL_ATC_RGBA_EXPLICIT_ALPHA_AMD); |
+ validators_.compressed_texture_format.AddValue( |
+ GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD); |
+ } |
+ |
+ if (extensions.Contains("GL_IMG_texture_compression_pvrtc")) { |
+ AddExtensionString("GL_IMG_texture_compression_pvrtc"); |
+ validators_.compressed_texture_format.AddValue( |
+ GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG); |
+ validators_.compressed_texture_format.AddValue( |
+ GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG); |
+ validators_.compressed_texture_format.AddValue( |
+ GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG); |
+ validators_.compressed_texture_format.AddValue( |
+ GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG); |
+ } |
+ |
// Ideally we would only expose this extension on Mac OS X, to |
// support GL_CHROMIUM_iosurface and the compositor. We don't want |
// applications to start using it; they should use ordinary non- |