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

Unified Diff: src/gpu/effects/GrSingleTextureEffect.cpp

Issue 787873002: Use threshold of 1 texture coord value per pixel w/ nearest neighbor. (Closed) Base URL: https://skia.googlesource.com/skia.git@matrix_prec
Patch Set: update comments Created 6 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
« no previous file with comments | « src/gpu/GrCoordTransform.cpp ('k') | src/gpu/effects/GrYUVtoRGBEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrSingleTextureEffect.cpp
diff --git a/src/gpu/effects/GrSingleTextureEffect.cpp b/src/gpu/effects/GrSingleTextureEffect.cpp
index 3ab5e3ae057776af4dca9891fcadd510682ec813..c291735c0d781c39e7caddadeda85814ec1e436d 100644
--- a/src/gpu/effects/GrSingleTextureEffect.cpp
+++ b/src/gpu/effects/GrSingleTextureEffect.cpp
@@ -10,7 +10,7 @@
GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
const SkMatrix& m,
GrCoordSet coordSet)
- : fCoordTransform(coordSet, m, texture)
+ : fCoordTransform(coordSet, m, texture, GrTextureParams::kNone_FilterMode)
, fTextureAccess(texture) {
this->addCoordTransform(&fCoordTransform);
this->addTextureAccess(&fTextureAccess);
@@ -20,7 +20,7 @@ GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
const SkMatrix& m,
GrTextureParams::FilterMode filterMode,
GrCoordSet coordSet)
- : fCoordTransform(coordSet, m, texture)
+ : fCoordTransform(coordSet, m, texture, filterMode)
, fTextureAccess(texture, filterMode) {
this->addCoordTransform(&fCoordTransform);
this->addTextureAccess(&fTextureAccess);
@@ -30,7 +30,7 @@ GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
const SkMatrix& m,
const GrTextureParams& params,
GrCoordSet coordSet)
- : fCoordTransform(coordSet, m, texture)
+ : fCoordTransform(coordSet, m, texture, params.filterMode())
, fTextureAccess(texture, params) {
this->addCoordTransform(&fCoordTransform);
this->addTextureAccess(&fTextureAccess);
« no previous file with comments | « src/gpu/GrCoordTransform.cpp ('k') | src/gpu/effects/GrYUVtoRGBEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698