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

Unified Diff: gpu/command_buffer/service/texture_manager.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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index b02272b86a24c7937440bbe28a2d8a531f65484b..8522da80be3306211ffca213d5b2ac572f301a30 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -1353,6 +1353,11 @@ GLenum Texture::SetParameteri(
}
swizzle_a_ = param;
break;
+ case GL_TEXTURE_SRGB_DECODE_EXT:
+ if (!feature_info->validators()->texture_srgb_decode_ext.IsValid(param)) {
+ return GL_INVALID_ENUM;
+ }
+ break;
case GL_TEXTURE_IMMUTABLE_FORMAT:
case GL_TEXTURE_IMMUTABLE_LEVELS:
return GL_INVALID_ENUM;
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698