Index: src/gpu/batches/GrAAStrokeRectBatch.cpp |
diff --git a/src/gpu/batches/GrAAStrokeRectBatch.cpp b/src/gpu/batches/GrAAStrokeRectBatch.cpp |
index 8cb1c2441cd82d2bc7be323916bbc8ce2179e87e..43b950c5bc3308b5c4e375391c1f9e99e3264d95 100644 |
--- a/src/gpu/batches/GrAAStrokeRectBatch.cpp |
+++ b/src/gpu/batches/GrAAStrokeRectBatch.cpp |
@@ -193,7 +193,7 @@ void AAStrokeRectBatch::onPrepareDraws(Target* target) const { |
return; |
} |
- target->initDraw(gp, this->pipeline()); |
+ target->initDraw(gp, kTriangles_GrPrimitiveType); |
size_t vertexStride = gp->getVertexStride(); |
@@ -209,9 +209,8 @@ void AAStrokeRectBatch::onPrepareDraws(Target* target) const { |
const SkAutoTUnref<const GrIndexBuffer> indexBuffer( |
GetIndexBuffer(target->resourceProvider(), this->miterStroke())); |
InstancedHelper helper; |
- void* vertices = helper.init(target, kTriangles_GrPrimitiveType, vertexStride, |
- indexBuffer, verticesPerInstance, indicesPerInstance, |
- instanceCount); |
+ void* vertices = helper.init(target, vertexStride, indexBuffer, verticesPerInstance, |
+ indicesPerInstance, instanceCount); |
if (!vertices || !indexBuffer) { |
SkDebugf("Could not allocate vertices\n"); |
return; |