Index: src/image/SkImage_Raster.cpp |
diff --git a/src/image/SkImage_Raster.cpp b/src/image/SkImage_Raster.cpp |
index 5e1e8a02f3ef3ef72098fb279acc4b2794202c92..3e2685606de4dbfd88e07e35d7dbbe38b650e969 100644 |
--- a/src/image/SkImage_Raster.cpp |
+++ b/src/image/SkImage_Raster.cpp |
@@ -55,6 +55,7 @@ public: |
virtual ~SkImage_Raster(); |
virtual void onDraw(SkCanvas*, SkScalar, SkScalar, const SkPaint*) SK_OVERRIDE; |
+ virtual void onDrawRectToRect(SkCanvas*, const SkRect*, const SkRect&, const SkPaint*) SK_OVERRIDE; |
virtual bool getROPixels(SkBitmap*) const SK_OVERRIDE; |
// exposed for SkSurface_Raster via SkNewImageFromPixelRef |
@@ -109,6 +110,10 @@ void SkImage_Raster::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPa |
canvas->drawBitmap(fBitmap, x, y, paint); |
} |
+void SkImage_Raster::onDrawRectToRect(SkCanvas* canvas, const SkRect* src, const SkRect& dst, const SkPaint* paint) { |
+ canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); |
+} |
+ |
bool SkImage_Raster::getROPixels(SkBitmap* dst) const { |
*dst = fBitmap; |
return true; |