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