Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index 494e21004acde43ac7e370da07765831d8d4910b..f427755d470dc4be61f436895e780c5b2fc542e9 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -23,6 +23,15 @@ |
id = sk_atomic_inc(&gUniqueID) + 1; |
} while (0 == id); |
return id; |
+} |
+ |
+void SkImage::draw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) const { |
+ as_IB(this)->onDraw(canvas, x, y, paint); |
+} |
+ |
+void SkImage::drawRect(SkCanvas* canvas, const SkRect* src, const SkRect& dst, |
+ const SkPaint* paint) const { |
+ as_IB(this)->onDrawRect(canvas, src, dst, paint); |
} |
const void* SkImage::peekPixels(SkImageInfo* info, size_t* rowBytes) const { |