From f603fb3d0e5fa57c3f228d66945bef198b001135 Mon Sep 17 00:00:00 2001 From: reed Date: Mon, 4 May 2015 08:32:02 -0700 Subject: make drawImage a virtual on SkDevice default impl will turn the Image into a (raster) bitmap and call drawBitmap. BUG=skia:3803 Review URL: https://codereview.chromium.org/1118823004 --- src/gpu/SkGpuDevice.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gpu/SkGpuDevice.h') diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h index 30cf68daa8..89959e1f9c 100644 --- a/src/gpu/SkGpuDevice.h +++ b/src/gpu/SkGpuDevice.h @@ -115,6 +115,9 @@ public: const SkPaint&) override; virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, const SkPaint&) override; + void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const SkPaint&) override; + void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const SkRect& dst, + const SkPaint&) override; void flush() override; -- cgit v1.2.3