Index: src/pdf/SkPDFCanvas.cpp |
diff --git a/src/pdf/SkPDFCanvas.cpp b/src/pdf/SkPDFCanvas.cpp |
index 0fc242b3bfba2704b57543e705cca5b19d6fff7f..bf9ceff9c5f2254a80d91e546e80b0db8d81970d 100644 |
--- a/src/pdf/SkPDFCanvas.cpp |
+++ b/src/pdf/SkPDFCanvas.cpp |
@@ -89,7 +89,7 @@ void SkPDFCanvas::onDrawImageLattice(const SkImage* image, |
const Lattice& lattice, |
const SkRect& dst, |
const SkPaint* paint) { |
- SkLatticeIter iter(image->width(), image->height(), lattice, dst); |
+ SkLatticeIter iter(lattice, dst); |
SkRect srcR, dstR; |
while (iter.next(&srcR, &dstR)) { |
this->drawImageRect(image, srcR, dstR, paint); |
@@ -100,7 +100,7 @@ void SkPDFCanvas::onDrawBitmapLattice(const SkBitmap& bitmap, |
const Lattice& lattice, |
const SkRect& dst, |
const SkPaint* paint) { |
- SkLatticeIter iter(bitmap.width(), bitmap.height(), lattice, dst); |
+ SkLatticeIter iter(lattice, dst); |
SkRect srcR, dstR; |
while (iter.next(&srcR, &dstR)) { |
this->drawBitmapRect(bitmap, srcR, dstR, paint); |