aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkDevice.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-05-06 12:56:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-06 12:56:48 -0700
commita85d4d0814818e4ddabb9237da209d61d6cd5854 (patch)
treea9da064f603bfec832f2150baa566381ddf5e35c /include/core/SkDevice.h
parent44d43d8d6e4f9321c9001f269ff433bd06aa81e1 (diff)
Make drawImage a virtual on SkDevice
Diffstat (limited to 'include/core/SkDevice.h')
-rw-r--r--include/core/SkDevice.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index 8a219d7053..b474687cfb 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -209,6 +209,10 @@ protected:
const SkPaint& paint,
SkCanvas::DrawBitmapRectFlags flags) = 0;
+ virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const SkPaint&);
+ virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const SkRect& dst,
+ const SkPaint&);
+
/**
* Does not handle text decoration.
* Decorations (underline and stike-thru) will be handled by SkCanvas.