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

Unified Diff: src/core/SkLatticeIter.h

Issue 2255963002: Batched implementation of drawLattice() for GPU (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Improve bench Created 4 years, 4 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
Index: src/core/SkLatticeIter.h
diff --git a/src/core/SkLatticeIter.h b/src/core/SkLatticeIter.h
index e2d767f1c8a5383d2f6d2e1b0bb115129a35156c..c01abf72d030bd3f0d468e3657ef36bec4aea32b 100644
--- a/src/core/SkLatticeIter.h
+++ b/src/core/SkLatticeIter.h
@@ -35,6 +35,11 @@ public:
*/
bool next(SkRect* src, SkRect* dst);
+ /**
+ * Returns the total number of rects that will be drawn.
+ */
+ int numRects() const;
+
private:
SkTArray<SkScalar> fSrcX;
SkTArray<SkScalar> fSrcY;

Powered by Google App Engine
This is Rietveld 408576698