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 32e72c69f32652768c47c267509af2b3df97b8d9..14be4fd1628f63a875ec6bf458fbeed63d6f0531 100644 |
--- a/gpu/command_buffer/service/feature_info.cc |
+++ b/gpu/command_buffer/service/feature_info.cc |
@@ -1293,6 +1293,19 @@ void FeatureInfo::InitializeFeatures() { |
} |
UMA_HISTOGRAM_BOOLEAN("GPU.TextureRG", feature_flags_.ext_texture_rg); |
+ if (gl_version_info_->is_desktop_core_profile || |
+ extensions.Contains("GL_EXT_texture_norm16")) { |
+ feature_flags_.ext_texture_norm16 = true; |
+ AddExtensionString("GL_EXT_texture_norm16"); |
+ |
+ // Note: EXT_texture_norm16 is not exposed through WebGL API so we validate |
+ // only the combinations used internally. |
+ validators_.texture_format.AddValue(GL_RED_EXT); |
+ validators_.texture_internal_format.AddValue(GL_R16_EXT); |
+ validators_.texture_internal_format.AddValue(GL_RED_EXT); |
+ validators_.texture_unsized_internal_format.AddValue(GL_RED_EXT); |
+ } |
+ |
bool has_opengl_dual_source_blending = |
gl_version_info_->IsAtLeastGL(3, 3) || |
(gl_version_info_->IsAtLeastGL(3, 2) && |