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

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

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.h
===================================================================
--- gpu/command_buffer/service/texture_manager.h (revision 112643)
+++ gpu/command_buffer/service/texture_manager.h (working copy)
@@ -40,6 +40,7 @@
mag_filter_(GL_LINEAR),
wrap_s_(GL_REPEAT),
wrap_t_(GL_REPEAT),
+ usage_(GL_NONE),
max_level_set_(-1),
texture_complete_(false),
cube_complete_(false),
@@ -66,6 +67,10 @@
return wrap_t_;
}
+ GLenum usage() const {
+ return usage_;
+ }
+
int num_uncleared_mips() const {
return num_uncleared_mips_;
}
@@ -282,6 +287,7 @@
GLenum mag_filter_;
GLenum wrap_s_;
GLenum wrap_t_;
+ GLenum usage_;
// The maximum level that has been set.
GLint max_level_set_;

Powered by Google App Engine
This is Rietveld 408576698