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

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

Issue 2539163003: Add command buffer support for GL_EXT_texture_sRGB_decode (Closed)
Patch Set: Rebase 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 cd87ab2aebad6550115babf1bb315cb207bff222..ba0f616d7b2eb98ed9e0906040af90708c4c6d31 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