Index: src/gpu/batches/GrDrawAtlasBatch.cpp |
diff --git a/src/gpu/batches/GrDrawAtlasBatch.cpp b/src/gpu/batches/GrDrawAtlasBatch.cpp |
index 3884ef200f055f4c7736c5573b7cb2b8796411a0..58ce137d76307d5d3c6688943eea12afdba0e715 100644 |
--- a/src/gpu/batches/GrDrawAtlasBatch.cpp |
+++ b/src/gpu/batches/GrDrawAtlasBatch.cpp |
@@ -58,8 +58,6 @@ void GrDrawAtlasBatch::onPrepareDraws(Target* target) const { |
this->viewMatrix(), |
this->coverageIgnored())); |
- target->initDraw(gp); |
- |
int instanceCount = fGeoData.count(); |
size_t vertexStride = gp->getVertexStride(); |
SkASSERT(vertexStride == sizeof(SkPoint) + sizeof(SkPoint) |
@@ -81,7 +79,7 @@ void GrDrawAtlasBatch::onPrepareDraws(Target* target) const { |
memcpy(vertPtr, args.fVerts.begin(), allocSize); |
vertPtr += allocSize; |
} |
- helper.recordDraw(target); |
+ helper.recordDraw(target, gp); |
} |
GrDrawAtlasBatch::GrDrawAtlasBatch(const Geometry& geometry, const SkMatrix& viewMatrix, |