Index: src/utils/SkNWayCanvas.cpp |
diff --git a/src/utils/SkNWayCanvas.cpp b/src/utils/SkNWayCanvas.cpp |
index 90fd017e1cd73e1f9609c67d120fac0aca80c9dd..a6722d8364d6fe010f42eb59edcd47f53d66cf69 100644 |
--- a/src/utils/SkNWayCanvas.cpp |
+++ b/src/utils/SkNWayCanvas.cpp |
@@ -225,6 +225,23 @@ void SkNWayCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
} |
} |
+void SkNWayCanvas::drawImage(const SkImage* image, SkScalar left, SkScalar top, |
+ const SkPaint* paint) { |
+ Iter iter(fList); |
+ while (iter.next()) { |
+ iter->drawImage(image, left, top, paint); |
+ } |
+} |
+ |
+void SkNWayCanvas::drawImageRect(const SkImage* image, const SkRect* src, |
+ const SkRect& dst, |
+ const SkPaint* paint) { |
+ Iter iter(fList); |
+ while (iter.next()) { |
+ iter->drawImageRect(image, src, dst, paint); |
+ } |
+} |
+ |
void SkNWayCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, |
const SkPaint* paint) { |
Iter iter(fList); |