| Index: src/gpu/batches/GrDrawVerticesBatch.cpp
|
| diff --git a/src/gpu/batches/GrDrawVerticesBatch.cpp b/src/gpu/batches/GrDrawVerticesBatch.cpp
|
| index 20d9f7929067fe1da9b2e6460d17a7f5483a4137..c14f0c228839a77ad77c4c48610d5eb9fdc9a4e0 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) {
|
|
|