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

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

Issue 1505343003: Updating texture validation to account for sampler objects in ES3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed issue on devices without TEXTURE_FLOAT_LINEAR 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/sampler_manager.cc ('k') | gpu/command_buffer/service/texture_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_definition.cc
diff --git a/gpu/command_buffer/service/texture_definition.cc b/gpu/command_buffer/service/texture_definition.cc
index e9d52aaf5856397bde8d50398a4f923f16768025..dbdc06b4ec0d709a1b0e043fca61f2a10dd10535 100644
--- a/gpu/command_buffer/service/texture_definition.cc
+++ b/gpu/command_buffer/service/texture_definition.cc
@@ -405,10 +405,10 @@ void TextureDefinition::UpdateTextureInternal(Texture* texture) const {
texture->target_ = target_;
texture->SetImmutable(immutable_);
- texture->min_filter_ = min_filter_;
- texture->mag_filter_ = mag_filter_;
- texture->wrap_s_ = wrap_s_;
- texture->wrap_t_ = wrap_t_;
+ texture->sampler_state_.min_filter = min_filter_;
+ texture->sampler_state_.mag_filter = mag_filter_;
+ texture->sampler_state_.wrap_s = wrap_s_;
+ texture->sampler_state_.wrap_t = wrap_t_;
texture->usage_ = usage_;
}
@@ -438,10 +438,10 @@ void TextureDefinition::UpdateTexture(Texture* texture) const {
bool TextureDefinition::Matches(const Texture* texture) const {
DCHECK(target_ == texture->target());
- if (texture->min_filter_ != min_filter_ ||
- texture->mag_filter_ != mag_filter_ ||
- texture->wrap_s_ != wrap_s_ ||
- texture->wrap_t_ != wrap_t_ ||
+ if (texture->sampler_state_.min_filter != min_filter_ ||
+ texture->sampler_state_.mag_filter != mag_filter_ ||
+ texture->sampler_state_.wrap_s != wrap_s_ ||
+ texture->sampler_state_.wrap_t != wrap_t_ ||
texture->SafeToRenderFrom() != SafeToRenderFrom()) {
return false;
}
« no previous file with comments | « gpu/command_buffer/service/sampler_manager.cc ('k') | gpu/command_buffer/service/texture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698