| Index: src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
|
| diff --git a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
|
| index 1cd8daf881ede324dc774803592d489b8e657782..06305384b5d3773e912db2f2408f9992a298050f 100644
|
| --- a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
|
| +++ b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
|
| @@ -159,7 +159,7 @@ private:
|
| fBatch.fCanTweakAlphaForCoverage = overrides.canTweakAlphaForCoverage();
|
| }
|
|
|
| - void draw(GrVertexBatch::Target* target, const GrPipeline* pipeline, int vertexCount,
|
| + void draw(GrVertexBatch::Target* target, const GrGeometryProcessor* gp, int vertexCount,
|
| size_t vertexStride, void* vertices, int indexCount, uint16_t* indices) const {
|
| if (vertexCount == 0 || indexCount == 0) {
|
| return;
|
| @@ -185,7 +185,7 @@ private:
|
| memcpy(idxs, indices, indexCount * sizeof(uint16_t));
|
| mesh.initIndexed(kTriangles_GrPrimitiveType, vertexBuffer, indexBuffer, firstVertex,
|
| firstIndex, vertexCount, indexCount);
|
| - target->draw(mesh);
|
| + target->draw(gp, mesh);
|
| }
|
|
|
| void onPrepareDraws(Target* target) const override {
|
| @@ -201,8 +201,6 @@ private:
|
| return;
|
| }
|
|
|
| - target->initDraw(gp);
|
| -
|
| size_t vertexStride = gp->getVertexStride();
|
|
|
| SkASSERT(canTweakAlphaForCoverage ?
|
| @@ -230,8 +228,7 @@ private:
|
| if (indexCount + currentIndices > UINT16_MAX) {
|
| // if we added the current instance, we would overflow the indices we can store in a
|
| // uint16_t. Draw what we've got so far and reset.
|
| - this->draw(target, this->pipeline(), vertexCount, vertexStride, vertices,
|
| - indexCount, indices);
|
| + this->draw(target, gp, vertexCount, vertexStride, vertices, indexCount, indices);
|
| vertexCount = 0;
|
| indexCount = 0;
|
| }
|
| @@ -250,8 +247,7 @@ private:
|
| vertexCount += currentVertices;
|
| indexCount += currentIndices;
|
| }
|
| - this->draw(target, this->pipeline(), vertexCount, vertexStride, vertices, indexCount,
|
| - indices);
|
| + this->draw(target, gp, vertexCount, vertexStride, vertices, indexCount, indices);
|
| sk_free(vertices);
|
| sk_free(indices);
|
| }
|
|
|