Index: src/gpu/batches/GrNinePatch.cpp |
diff --git a/src/gpu/batches/GrNinePatch.cpp b/src/gpu/batches/GrNinePatch.cpp |
index 3417c5c0951d4c6794e875253dfd821c54b323af..522e775c3339d6579b7aa730d2799e070bb81300 100644 |
--- a/src/gpu/batches/GrNinePatch.cpp |
+++ b/src/gpu/batches/GrNinePatch.cpp |
@@ -82,7 +82,7 @@ private: |
int patchCnt = fPatches.count(); |
int numRects = 0; |
for (int i = 0; i < patchCnt; i++) { |
- numRects += fPatches[i].fIter->numRects(); |
+ numRects += fPatches[i].fIter->numRectsToDraw(); |
} |
SkAutoTUnref<const GrBuffer> indexBuffer( |
@@ -132,7 +132,7 @@ private: |
if (!isScaleTranslate) { |
SkPoint* positions = reinterpret_cast<SkPoint*>(patchVerts); |
patch.fViewMatrix.mapPointsWithStride(positions, vertexStride, |
- kVertsPerRect * patch.fIter->numRects()); |
+ kVertsPerRect * patch.fIter->numRectsToDraw()); |
} |
} |
helper.recordDraw(target, gp.get()); |