Index: src/gpu/batches/GrDrawVerticesBatch.cpp |
diff --git a/src/gpu/batches/GrDrawVerticesBatch.cpp b/src/gpu/batches/GrDrawVerticesBatch.cpp |
index d3c9f5e32f4a1e2df7d2b4791e3df690bddc67e9..12ea05a74744579e7c9a11f01c21c72d28c41622 100644 |
--- a/src/gpu/batches/GrDrawVerticesBatch.cpp |
+++ b/src/gpu/batches/GrDrawVerticesBatch.cpp |
@@ -97,8 +97,6 @@ void GrDrawVerticesBatch::onPrepareDraws(Target* target) const { |
SkAutoTUnref<const GrGeometryProcessor> gp( |
set_vertex_attributes(hasLocalCoords, &colorOffset, &texOffset, fViewMatrix, |
fCoverageIgnored)); |
- target->initDraw(gp); |
- |
size_t vertexStride = gp->getVertexStride(); |
SkASSERT(vertexStride == sizeof(SkPoint) + (hasLocalCoords ? sizeof(SkPoint) : 0) |
@@ -164,7 +162,7 @@ void GrDrawVerticesBatch::onPrepareDraws(Target* target) const { |
} else { |
mesh.init(this->primitiveType(), vertexBuffer, firstVertex, fVertexCount); |
} |
- target->draw(mesh); |
+ target->draw(gp, mesh); |
} |
bool GrDrawVerticesBatch::onCombineIfPossible(GrBatch* t, const GrCaps& caps) { |