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

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

Issue 24853002: Make GPU coord transforms automatic (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 3 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 | « src/gpu/effects/GrSingleTextureEffect.h ('k') | src/gpu/effects/GrTextureDomainEffect.h » ('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 532ce04217bebda26dbc5384389b3fc7536340b3..3ab5e3ae057776af4dca9891fcadd510682ec813 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);
}
« no previous file with comments | « src/gpu/effects/GrSingleTextureEffect.h ('k') | src/gpu/effects/GrTextureDomainEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698