diff options
author | reed <reed@google.com> | 2015-06-25 12:32:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-25 12:32:03 -0700 |
commit | 4c21dc5ddf3b482293ed34eead876d8d61a662c3 (patch) | |
tree | 390454c66e28c94a8a59b8d5ca881ef4b94e9fe2 /src/core/SkRecords.h | |
parent | b4022965a280dd1ed64d6103dd29e2189abe6e00 (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 'src/core/SkRecords.h')
-rw-r--r-- | src/core/SkRecords.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkRecords.h b/src/core/SkRecords.h index 381f91438b..8e778bf7a2 100644 --- a/src/core/SkRecords.h +++ b/src/core/SkRecords.h @@ -44,6 +44,7 @@ namespace SkRecords { M(DrawDrawable) \ M(DrawImage) \ M(DrawImageRect) \ + M(DrawImageNine) \ M(DrawDRRect) \ M(DrawOval) \ M(DrawPaint) \ @@ -288,6 +289,10 @@ RECORD4(DrawImageRect, Optional<SkPaint>, paint, RefBox<const SkImage>, image, Optional<SkRect>, src, SkRect, dst); +RECORD4(DrawImageNine, Optional<SkPaint>, paint, + RefBox<const SkImage>, image, + SkIRect, center, + SkRect, dst); RECORD2(DrawOval, SkPaint, paint, SkRect, oval); RECORD1(DrawPaint, SkPaint, paint); RECORD2(DrawPath, SkPaint, paint, PreCachedPath, path); |