Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index 2dcedb4bd733bcf824191c51bafdd5ee28e63142..fb92ff951bafd0aca24303d4b4378705bf78a31c 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -185,6 +185,17 @@ void SkBaseDevice::drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, co |
} |
} |
+void SkBaseDevice::drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, |
+ const SkCanvas::NinePatchDivs& divs, const SkRect& dst, |
+ const SkPaint& paint) { |
+ SkNinePatchIter iter(bitmap.width(), bitmap.height(), divs, dst); |
+ |
+ SkRect srcR, dstR; |
+ while (iter.next(&srcR, &dstR)) { |
+ this->drawBitmapRect(draw, bitmap, &srcR, dstR, paint, SkCanvas::kStrict_SrcRectConstraint); |
+ } |
+} |
+ |
void SkBaseDevice::drawAtlas(const SkDraw& draw, const SkImage* atlas, const SkRSXform xform[], |
const SkRect tex[], const SkColor colors[], int count, |
SkXfermode::Mode mode, const SkPaint& paint) { |