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