Index: src/image/SkImage_Picture.cpp |
diff --git a/src/image/SkImage_Picture.cpp b/src/image/SkImage_Picture.cpp |
index be934fa23884b12af9500571876f5278104b47df..87221de27b555f700560c429c9110e52ae1bfd6e 100644 |
--- a/src/image/SkImage_Picture.cpp |
+++ b/src/image/SkImage_Picture.cpp |
@@ -15,6 +15,7 @@ public: |
virtual ~SkImage_Picture(); |
virtual void onDraw(SkCanvas*, SkScalar, SkScalar, const SkPaint*) SK_OVERRIDE; |
+ virtual void onDrawRectToRect(SkCanvas*, const SkRect*, const SkRect&, const SkPaint*) SK_OVERRIDE; |
SkPicture* getPicture() { return fPicture; } |
@@ -41,6 +42,11 @@ void SkImage_Picture::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, |
SkImagePrivDrawPicture(canvas, fPicture, x, y, paint); |
} |
+void SkImage_Picture::onDrawRectToRect(SkCanvas* canvas, const SkRect* src, const SkRect& dst, |
+ const SkPaint* paint) { |
+ SkImagePrivDrawPicture(canvas, fPicture, src, dst, paint); |
+} |
+ |
SkImage* SkNewImageFromPicture(const SkPicture* srcPicture) { |
/** |
* We want to snapshot the playback status of the picture, w/o affecting |