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

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

Issue 1630263002: Revert of Updating texture validation to account for sampler objects in ES3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/sampler_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/sampler_manager.h
diff --git a/gpu/command_buffer/service/sampler_manager.h b/gpu/command_buffer/service/sampler_manager.h
index 6dc470ac8d920f9ecb7fbdbac944f95460710c8c..840fdaca903bb4c677399d0ff058bd98a139cae7 100644
--- a/gpu/command_buffer/service/sampler_manager.h
+++ b/gpu/command_buffer/service/sampler_manager.h
@@ -21,20 +21,6 @@
class SamplerManager;
-struct SamplerState {
- SamplerState();
-
- GLenum min_filter;
- GLenum mag_filter;
- GLenum wrap_r;
- GLenum wrap_s;
- GLenum wrap_t;
- GLenum compare_func;
- GLenum compare_mode;
- GLfloat max_lod;
- GLfloat min_lod;
-};
-
class GPU_EXPORT Sampler : public base::RefCounted<Sampler> {
public:
Sampler(SamplerManager* manager, GLuint service_id);
@@ -44,45 +30,41 @@
return service_id_;
}
- const SamplerState& sampler_state() const {
- return sampler_state_;
- }
-
// Sampler parameters
GLenum min_filter() const {
- return sampler_state_.min_filter;
+ return min_filter_;
}
GLenum mag_filter() const {
- return sampler_state_.mag_filter;
+ return mag_filter_;
}
GLenum wrap_r() const {
- return sampler_state_.wrap_r;
+ return wrap_r_;
}
GLenum wrap_s() const {
- return sampler_state_.wrap_s;
+ return wrap_s_;
}
GLenum wrap_t() const {
- return sampler_state_.wrap_t;
+ return wrap_t_;
}
GLenum compare_func() const {
- return sampler_state_.compare_func;
+ return compare_func_;
}
GLenum compare_mode() const {
- return sampler_state_.compare_mode;
+ return compare_mode_;
}
GLfloat max_lod() const {
- return sampler_state_.max_lod;
+ return max_lod_;
}
GLfloat min_lod() const {
- return sampler_state_.min_lod;
+ return min_lod_;
}
bool IsDeleted() const {
@@ -117,8 +99,16 @@
// The id of the texure
GLuint service_id_;
- // Sampler parameters.
- SamplerState sampler_state_;
+ // Texture parameters.
+ GLenum min_filter_;
+ GLenum mag_filter_;
+ GLenum wrap_r_;
+ GLenum wrap_s_;
+ GLenum wrap_t_;
+ GLenum compare_func_;
+ GLenum compare_mode_;
+ GLfloat max_lod_;
+ GLfloat min_lod_;
// True if deleted.
bool deleted_;
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/sampler_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698