Index: src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
diff --git a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
index 4948d29f634cdfc664676f7934de8d8b5f64a4e3..4694f2256a30244cba9d67cfd86ce9fe96b2ffcc 100644 |
--- a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
+++ b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
@@ -209,7 +209,7 @@ private: |
flags, |
this->usesLocalCoords())); |
- target->initDraw(dfProcessor, this->pipeline()); |
+ target->initDraw(dfProcessor, kTriangles_GrPrimitiveType); |
FlushInfo flushInfo; |
@@ -407,7 +407,7 @@ private: |
&atlasLocation); |
if (!success) { |
this->flush(target, flushInfo); |
- target->initDraw(dfProcessor, pipeline); |
+ target->initDraw(dfProcessor, kTriangles_GrPrimitiveType); |
SkDEBUGCODE(success =) atlas->addToAtlas(&id, target, width, height, |
dfStorage.get(), &atlasLocation); |
@@ -493,7 +493,7 @@ private: |
void flush(GrVertexBatch::Target* target, FlushInfo* flushInfo) const { |
GrVertices vertices; |
int maxInstancesPerDraw = flushInfo->fIndexBuffer->maxQuads(); |
- vertices.initInstanced(kTriangles_GrPrimitiveType, flushInfo->fVertexBuffer, |
+ vertices.initInstanced(flushInfo->fVertexBuffer, |
flushInfo->fIndexBuffer, flushInfo->fVertexOffset, kVerticesPerQuad, |
kIndicesPerQuad, flushInfo->fInstancesToFlush, maxInstancesPerDraw); |
target->draw(vertices); |