Don't pass pipeline to GrBatch::generateGeometry()
R=joshualitt@google.com
Review URL: https://codereview.chromium.org/1275083002
diff --git a/src/gpu/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/GrAALinearizingConvexPathRenderer.cpp
index e4b592a..da90fe0 100644
--- a/src/gpu/GrAALinearizingConvexPathRenderer.cpp
+++ b/src/gpu/GrAALinearizingConvexPathRenderer.cpp
@@ -184,7 +184,7 @@
batchTarget->draw(info);
}
- void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override {
+ void generateGeometry(GrBatchTarget* batchTarget) override {
bool canTweakAlphaForCoverage = this->canTweakAlphaForCoverage();
// Setup GrGeometryProcessor
@@ -197,7 +197,7 @@
return;
}
- batchTarget->initDraw(gp, pipeline);
+ batchTarget->initDraw(gp, this->pipeline());
size_t vertexStride = gp->getVertexStride();
@@ -226,7 +226,7 @@
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.
- draw(batchTarget, pipeline, vertexCount, vertexStride, vertices, indexCount,
+ draw(batchTarget, this->pipeline(), vertexCount, vertexStride, vertices, indexCount,
indices);
vertexCount = 0;
indexCount = 0;
@@ -246,7 +246,8 @@
vertexCount += currentVertices;
indexCount += currentIndices;
}
- draw(batchTarget, pipeline, vertexCount, vertexStride, vertices, indexCount, indices);
+ draw(batchTarget, this->pipeline(), vertexCount, vertexStride, vertices, indexCount,
+ indices);
free(vertices);
free(indices);
}