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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 2560563002: Add command buffer support for GL_EXT_texture_sRGB_decode (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
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 4e80bfb2c9284e0ffdcfb5d51d6283b832f2badd..ba7eccf1fe955142439699b0e313807f7b63b3f9 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -619,6 +619,12 @@ void FeatureInfo::InitializeFeatures() {
}
}
+ // The extension GL_EXT_texture_sRGB_decode is the same on desktop and GLES.
+ if (extensions.Contains("GL_EXT_texture_sRGB_decode") && !IsWebGLContext()) {
+ AddExtensionString("GL_EXT_texture_sRGB_decode");
+ validators_.texture_parameter.AddValue(GL_TEXTURE_SRGB_DECODE_EXT);
+ }
+
// On desktop, GL_EXT_texture_sRGB is required regardless of GL version,
// since the sRGB formats in OpenGL 3.0 Core do not support S3TC.
// TODO(kainino): Support GL_EXT_texture_compression_s3tc_srgb once ratified.

Powered by Google App Engine
This is Rietveld 408576698