Index: src/core/SkLatticeIter.h |
diff --git a/src/core/SkLatticeIter.h b/src/core/SkLatticeIter.h |
index e2d767f1c8a5383d2f6d2e1b0bb115129a35156c..192b6c5b54e49f1d4d96cefd18821e7ed250c278 100644 |
--- a/src/core/SkLatticeIter.h |
+++ b/src/core/SkLatticeIter.h |
@@ -35,15 +35,28 @@ public: |
*/ |
bool next(SkRect* src, SkRect* dst); |
+ /** |
+ * Apply a matrix to the dst points. |
+ */ |
+ void mapDstScaleTranslate(const SkMatrix& matrix); |
+ |
+ /** |
+ * Returns the total number of rects that will be drawn. |
+ */ |
+ int numRects() const { |
+ return fNumRects; |
+ } |
+ |
private: |
SkTArray<SkScalar> fSrcX; |
SkTArray<SkScalar> fSrcY; |
SkTArray<SkScalar> fDstX; |
SkTArray<SkScalar> fDstY; |
- int fCurrX; |
- int fCurrY; |
+ int fCurrX; |
+ int fCurrY; |
bool fDone; |
+ int fNumRects; |
}; |
#endif |