| Index: src/gpu/GrAAConvexPathRenderer.cpp
|
| diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp
|
| index f20306404aafe3a02a0dc2950b847d1d0535a639..3a548aa60aca8c4fd3575b17063dd3d4edad9621 100644
|
| --- a/src/gpu/GrAAConvexPathRenderer.cpp
|
| +++ b/src/gpu/GrAAConvexPathRenderer.cpp
|
| @@ -824,14 +824,19 @@
|
| create_vertices(segments, fanPt, &draws, verts, idxs);
|
|
|
| GrDrawTarget::DrawInfo info;
|
| -
|
| + info.setVertexBuffer(vertexBuffer);
|
| + info.setIndexBuffer(indexBuffer);
|
| + info.setPrimitiveType(kTriangles_GrPrimitiveType);
|
| + info.setStartIndex(firstIndex);
|
| +
|
| + int vOffset = 0;
|
| for (int i = 0; i < draws.count(); ++i) {
|
| const Draw& draw = draws[i];
|
| - info.initIndexed(kTriangles_GrPrimitiveType, vertexBuffer, indexBuffer, firstVertex,
|
| - firstIndex, draw.fVertexCnt, draw.fIndexCnt);
|
| + info.setStartVertex(vOffset + firstVertex);
|
| + info.setVertexCount(draw.fVertexCnt);
|
| + info.setIndexCount(draw.fIndexCnt);
|
| batchTarget->draw(info);
|
| - firstVertex += draw.fVertexCnt;
|
| - firstIndex += draw.fIndexCnt;
|
| + vOffset += draw.fVertexCnt;
|
| }
|
| }
|
| }
|
|
|