diff options
author | 2015-05-04 08:32:02 -0700 | |
---|---|---|
committer | 2015-05-04 08:32:02 -0700 | |
commit | f603fb3d0e5fa57c3f228d66945bef198b001135 (patch) | |
tree | 6d3013b43ae2f94277318b4c949ab1f6f1f18d10 /src/gpu/SkGpuDevice.h | |
parent | ab622c7b8cc8c39f0a594e4392b9e31b7e1ddb26 (diff) |
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
Diffstat (limited to 'src/gpu/SkGpuDevice.h')
-rw-r--r-- | src/gpu/SkGpuDevice.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; |