Index: src/image/SkImage_Gpu.cpp |
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp |
index b6e4211d28fc422501ed3c79449a98ec393c5c82..d19d2100c3000b5c8dceef341fead9c3281df819 100644 |
--- a/src/image/SkImage_Gpu.cpp |
+++ b/src/image/SkImage_Gpu.cpp |
@@ -21,6 +21,7 @@ public: |
virtual ~SkImage_Gpu(); |
virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) SK_OVERRIDE; |
+ virtual void onDrawRectToRect(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint*) SK_OVERRIDE; |
virtual GrTexture* onGetTexture() SK_OVERRIDE; |
virtual bool getROPixels(SkBitmap*) const SK_OVERRIDE { |
// TODO |
@@ -61,6 +62,11 @@ void SkImage_Gpu::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, |
canvas->drawBitmap(fBitmap, x, y, paint); |
} |
+void SkImage_Gpu::onDrawRectToRect(SkCanvas* canvas, const SkRect* src, const SkRect& dst, |
+ const SkPaint* paint) { |
+ canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); |
+} |
+ |
GrTexture* SkImage_Gpu::onGetTexture() { |
return fTexture; |
} |