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

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

Issue 8772033: Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/texture_manager.cc
===================================================================
--- gpu/command_buffer/service/texture_manager.cc (revision 112643)
+++ gpu/command_buffer/service/texture_manager.cc (working copy)
@@ -368,6 +368,12 @@
case GL_TEXTURE_MAX_ANISOTROPY_EXT:
// Nothing to do for this case at the moment.
break;
+ case GL_TEXTURE_USAGE_ANGLE:
+ if (!feature_info->validators()->texture_usage.IsValid(param)) {
+ return false;
+ }
+ usage_ = param;
+ break;
default:
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698