| 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 a15c791626fae6b3aad0eeb411a481fbfe98806d..48734678fcd6084735523ce78d7496a71c27026b 100644
|
| --- a/gpu/command_buffer/service/feature_info.cc
|
| +++ b/gpu/command_buffer/service/feature_info.cc
|
| @@ -128,7 +128,9 @@ FeatureInfo::FeatureFlags::FeatureFlags()
|
| use_arb_occlusion_query2_for_occlusion_query_boolean(false),
|
| use_arb_occlusion_query_for_occlusion_query_boolean(false),
|
| native_vertex_array_object(false),
|
| + ext_texture_format_atc(false),
|
| ext_texture_format_bgra8888(false),
|
| + ext_texture_format_dxt(false),
|
| enable_shader_name_hashing(false),
|
| enable_samplers(false),
|
| ext_draw_buffers(false),
|
| @@ -353,6 +355,23 @@ void FeatureInfo::InitializeFeatures() {
|
| GL_COMPRESSED_RGBA_S3TC_DXT5_EXT);
|
| }
|
|
|
| + if (enable_dxt1 && enable_dxt5) {
|
| + feature_flags_.ext_texture_format_dxt = true;
|
| + }
|
| +
|
| + // Check if we should allow GL_AMD_compressed_ATC_texture.
|
| + bool have_atc = extensions.Contains("GL_AMD_compressed_ATC_texture") ||
|
| + extensions.Contains("GL_ATI_texture_compression_atitc");
|
| +
|
| + if (have_atc) {
|
| + feature_flags_.ext_texture_format_atc = true;
|
| +
|
| + AddExtensionString("GL_AMD_compressed_ATC_texture");
|
| + validators_.compressed_texture_format.AddValue(GL_ATC_RGB_AMD);
|
| + validators_.compressed_texture_format.AddValue(
|
| + GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD);
|
| + }
|
| +
|
| // Check if we should enable GL_EXT_texture_filter_anisotropic.
|
| if (extensions.Contains("GL_EXT_texture_filter_anisotropic")) {
|
| AddExtensionString("GL_EXT_texture_filter_anisotropic");
|
|
|