Index: src/gpu/batches/GrNonAAStrokeRectBatch.cpp |
diff --git a/src/gpu/batches/GrNonAAStrokeRectBatch.cpp b/src/gpu/batches/GrNonAAStrokeRectBatch.cpp |
index 8c32c8339d2e812c13604bd67368de6c86b2d44f..36092ea3f74bfca2d358d11546374aad6fe2655b 100644 |
--- a/src/gpu/batches/GrNonAAStrokeRectBatch.cpp |
+++ b/src/gpu/batches/GrNonAAStrokeRectBatch.cpp |
@@ -117,8 +117,6 @@ private: |
this->viewMatrix())); |
} |
- target->initDraw(gp); |
- |
size_t vertexStride = gp->getVertexStride(); |
SkASSERT(vertexStride == sizeof(GrDefaultGeoProcFactory::PositionAttr)); |
@@ -159,7 +157,7 @@ private: |
GrMesh mesh; |
mesh.init(primType, vertexBuffer, firstVertex, vertexCount); |
- target->draw(mesh); |
+ target->draw(gp, mesh); |
} |
void initBatchTracker(const GrXPOverridesForBatch& overrides) override { |