aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-05-04 08:32:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-04 08:32:02 -0700
commitf603fb3d0e5fa57c3f228d66945bef198b001135 (patch)
tree6d3013b43ae2f94277318b4c949ab1f6f1f18d10 /src/gpu/SkGpuDevice.h
parentab622c7b8cc8c39f0a594e4392b9e31b7e1ddb26 (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.h3
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;