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

Unified Diff: include/gpu/GrCoordTransform.h

Issue 659803005: Last round of effect->processor (for now) (Closed) Base URL: https://skia.googlesource.com/skia.git@factory
Patch Set: fixed Created 6 years, 2 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 | « include/gpu/GrBackendProcessorFactory.h ('k') | src/gpu/GrProcessor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrCoordTransform.h
diff --git a/include/gpu/GrCoordTransform.h b/include/gpu/GrCoordTransform.h
index 718bbe774f5f24ad7ef02c6a1119b1ef49dce8da..db71ff11584c701ccb6c52f7f8cfd95a8b035c90 100644
--- a/include/gpu/GrCoordTransform.h
+++ b/include/gpu/GrCoordTransform.h
@@ -41,13 +41,13 @@ enum GrCoordSet {
*/
class GrCoordTransform : SkNoncopyable {
public:
- GrCoordTransform() { SkDEBUGCODE(fInEffect = false); }
+ GrCoordTransform() { SkDEBUGCODE(fInProcessor = false); }
/**
* Create a transformation that maps [0, 1] to a texture's boundaries.
*/
GrCoordTransform(GrCoordSet sourceCoords, const GrTexture* texture) {
- SkDEBUGCODE(fInEffect = false);
+ SkDEBUGCODE(fInProcessor = false);
this->reset(sourceCoords, texture);
}
@@ -57,25 +57,25 @@ public:
* coord convention.
*/
GrCoordTransform(GrCoordSet sourceCoords, const SkMatrix& m, const GrTexture* texture = NULL) {
- SkDEBUGCODE(fInEffect = false);
+ SkDEBUGCODE(fInProcessor = false);
this->reset(sourceCoords, m, texture);
}
void reset(GrCoordSet sourceCoords, const GrTexture* texture) {
- SkASSERT(!fInEffect);
+ SkASSERT(!fInProcessor);
SkASSERT(texture);
this->reset(sourceCoords, MakeDivByTextureWHMatrix(texture), texture);
}
void reset(GrCoordSet sourceCoords, const SkMatrix& m, const GrTexture* texture = NULL) {
- SkASSERT(!fInEffect);
+ SkASSERT(!fInProcessor);
fSourceCoords = sourceCoords;
fMatrix = m;
fReverseY = texture && kBottomLeft_GrSurfaceOrigin == texture->origin();
}
GrCoordTransform& operator= (const GrCoordTransform& other) {
- SkASSERT(!fInEffect);
+ SkASSERT(!fInProcessor);
fSourceCoords = other.fSourceCoords;
fMatrix = other.fMatrix;
fReverseY = other.fReverseY;
@@ -87,7 +87,7 @@ public:
* effect, since effects are immutable.
*/
SkMatrix* accessMatrix() {
- SkASSERT(!fInEffect);
+ SkASSERT(!fInProcessor);
return &fMatrix;
}
@@ -119,9 +119,9 @@ private:
#ifdef SK_DEBUG
public:
- void setInEffect() const { fInEffect = true; }
+ void setInProcessor() const { fInProcessor = true; }
private:
- mutable bool fInEffect;
+ mutable bool fInProcessor;
#endif
};
« no previous file with comments | « include/gpu/GrBackendProcessorFactory.h ('k') | src/gpu/GrProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698