Index: src/gpu/GrAADistanceFieldPathRenderer.cpp |
diff --git a/src/gpu/GrAADistanceFieldPathRenderer.cpp b/src/gpu/GrAADistanceFieldPathRenderer.cpp |
index fc4ab1647b9b28d930240d6663ea7ae63aad8a62..3d4a89b0c013b8b4c0d72f4bd2dd1d8ad37a67a9 100755 |
--- a/src/gpu/GrAADistanceFieldPathRenderer.cpp |
+++ b/src/gpu/GrAADistanceFieldPathRenderer.cpp |
@@ -507,14 +507,11 @@ private: |
void flush(GrBatchTarget* batchTarget, FlushInfo* flushInfo) { |
GrVertices vertices; |
- int instancesToFlush = flushInfo->fInstancesToFlush; |
int maxInstancesPerDraw = flushInfo->fIndexBuffer->maxQuads(); |
vertices.initInstanced(kTriangles_GrPrimitiveType, flushInfo->fVertexBuffer, |
flushInfo->fIndexBuffer, flushInfo->fVertexOffset, kVerticesPerQuad, |
- kIndicesPerQuad, &instancesToFlush, maxInstancesPerDraw); |
- do { |
- batchTarget->draw(vertices); |
- } while (vertices.nextInstances(&instancesToFlush, maxInstancesPerDraw)); |
+ kIndicesPerQuad, flushInfo->fInstancesToFlush, maxInstancesPerDraw); |
+ batchTarget->draw(vertices); |
flushInfo->fVertexOffset += kVerticesPerQuad * flushInfo->fInstancesToFlush; |
flushInfo->fInstancesToFlush = 0; |
} |