diff options
Diffstat (limited to 'src/gpu/effects/GrSingleTextureEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrSingleTextureEffect.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gpu/effects/GrSingleTextureEffect.cpp b/src/gpu/effects/GrSingleTextureEffect.cpp index 532ce04217..3ab5e3ae05 100644 --- a/src/gpu/effects/GrSingleTextureEffect.cpp +++ b/src/gpu/effects/GrSingleTextureEffect.cpp @@ -9,30 +9,30 @@ GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, const SkMatrix& m, - CoordsType coordsType) - : fTextureAccess(texture) - , fMatrix(m) - , fCoordsType(coordsType) { + GrCoordSet coordSet) + : fCoordTransform(coordSet, m, texture) + , fTextureAccess(texture) { + this->addCoordTransform(&fCoordTransform); this->addTextureAccess(&fTextureAccess); } GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, const SkMatrix& m, GrTextureParams::FilterMode filterMode, - CoordsType coordsType) - : fTextureAccess(texture, filterMode) - , fMatrix(m) - , fCoordsType(coordsType) { + GrCoordSet coordSet) + : fCoordTransform(coordSet, m, texture) + , fTextureAccess(texture, filterMode) { + this->addCoordTransform(&fCoordTransform); this->addTextureAccess(&fTextureAccess); } GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, const SkMatrix& m, const GrTextureParams& params, - CoordsType coordsType) - : fTextureAccess(texture, params) - , fMatrix(m) - , fCoordsType(coordsType) { + GrCoordSet coordSet) + : fCoordTransform(coordSet, m, texture) + , fTextureAccess(texture, params) { + this->addCoordTransform(&fCoordTransform); this->addTextureAccess(&fTextureAccess); } |