Index: src/image/SkSurface.cpp |
diff --git a/src/image/SkSurface.cpp b/src/image/SkSurface.cpp |
index b10782a0ef64fc8f4a158a5afeebce9ddc5709eb..861515dd8347d955a70e3222c10f5229ec157a9b 100644 |
--- a/src/image/SkSurface.cpp |
+++ b/src/image/SkSurface.cpp |
@@ -76,7 +76,7 @@ |
void SkSurface_Base::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) { |
SkImage* image = this->newImageSnapshot(); |
if (image) { |
- canvas->drawImage(image, x, y, paint); |
+ image->draw(canvas, x, y, paint); |
image->unref(); |
} |
} |