Index: src/gpu/batches/GrNonAAStrokeRectBatch.cpp |
diff --git a/src/gpu/batches/GrNonAAStrokeRectBatch.cpp b/src/gpu/batches/GrNonAAStrokeRectBatch.cpp |
index 6766de2e3b2370d5fe835f03133e9e31bdadc7fc..a87ab113835587a6bcb4be560ed33bfc3a292444 100644 |
--- a/src/gpu/batches/GrNonAAStrokeRectBatch.cpp |
+++ b/src/gpu/batches/GrNonAAStrokeRectBatch.cpp |
@@ -117,7 +117,7 @@ private: |
this->viewMatrix())); |
} |
- target->initDraw(gp, this->pipeline()); |
+ target->initDraw(gp); |
size_t vertexStride = gp->getVertexStride(); |
@@ -144,7 +144,7 @@ private: |
SkPoint* vertex = reinterpret_cast<SkPoint*>(verts); |
GrPrimitiveType primType; |
- if (args.fStrokeWidth > 0) {; |
+ if (args.fStrokeWidth > 0) { |
primType = kTriangleStrip_GrPrimitiveType; |
init_stroke_rect_strip(vertex, args.fRect, args.fStrokeWidth); |
} else { |
@@ -157,9 +157,9 @@ private: |
vertex[4].set(args.fRect.fLeft, args.fRect.fTop); |
} |
- GrVertices vertices; |
- vertices.init(primType, vertexBuffer, firstVertex, vertexCount); |
- target->draw(vertices); |
+ GrMesh mesh; |
+ mesh.init(primType, vertexBuffer, firstVertex, vertexCount); |
+ target->draw(mesh); |
} |
void initBatchTracker(const GrXPOverridesForBatch& overrides) override { |