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

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

Issue 1133033002: Update GetTexParameter* and TexParameter* for ES3 in GPU command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index faa611c6c64812284b3aeea0ed6074d3bddebae5..308805483b11ad1e9cd7b84596daa22bd3912c4c 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -48,6 +48,10 @@ class GPU_EXPORT Texture {
return mag_filter_;
}
+ GLenum wrap_r() const {
+ return wrap_r_;
+ }
+
GLenum wrap_s() const {
return wrap_s_;
}
@@ -64,6 +68,30 @@ class GPU_EXPORT Texture {
return pool_;
}
+ GLenum compare_func() const {
+ return compare_func_;
+ }
+
+ GLenum compare_mode() const {
+ return compare_mode_;
+ }
+
+ GLfloat max_lod() const {
+ return max_lod_;
+ }
+
+ GLfloat min_lod() const {
+ return min_lod_;
+ }
+
+ GLint base_level() const {
+ return base_level_;
+ }
+
+ GLint max_level() const {
+ return max_level_;
+ }
+
int num_uncleared_mips() const {
return num_uncleared_mips_;
}
@@ -390,10 +418,17 @@ class GPU_EXPORT Texture {
// Texture parameters.
GLenum min_filter_;
GLenum mag_filter_;
+ GLenum wrap_r_;
GLenum wrap_s_;
GLenum wrap_t_;
GLenum usage_;
GLenum pool_;
+ GLenum compare_func_;
+ GLenum compare_mode_;
+ GLfloat max_lod_;
+ GLfloat min_lod_;
+ GLint base_level_;
+ GLint max_level_;
// The maximum level that has been set.
GLint max_level_set_;

Powered by Google App Engine
This is Rietveld 408576698