aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkDevice.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-06-25 12:32:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-25 12:32:03 -0700
commit4c21dc5ddf3b482293ed34eead876d8d61a662c3 (patch)
tree390454c66e28c94a8a59b8d5ca881ef4b94e9fe2 /include/core/SkDevice.h
parentb4022965a280dd1ed64d6103dd29e2189abe6e00 (diff)
add drawImageNine
this also exposes nine-patch drawing directly to devices, and creates a shared iterator for unrolling a nine-patch into single rect->rect draws. BUG=skia: Review URL: https://codereview.chromium.org/1211583003
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 2db685a96e..6b00c104fc 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -220,10 +220,14 @@ protected:
const SkRect* srcOrNull, const SkRect& dst,
const SkPaint& paint,
SkCanvas::DrawBitmapRectFlags flags) = 0;
+ virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& center,
+ const SkRect& dst, const SkPaint&);
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&);
+ virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& center,
+ const SkRect& dst, const SkPaint&);
/**
* Does not handle text decoration.