Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 35551e7e9a1e88b64537369c190fbcfd4d0b9ec2..941d8688f163185683bf5e3e68086569fbacfccc 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1772,6 +1772,12 @@ void SkCanvas::drawImageRect(const SkImage* image, const SkRect* src, const SkRe |
this->onDrawImageRect(image, src, dst, paint SRC_RECT_CONSTRAINT_ARG(constraint)); |
} |
+void SkCanvas::drawImageRect(const SkImage* image, const SkIRect& isrc, const SkRect& dst, |
+ const SkPaint* paint, SrcRectConstraint constraint) { |
+ SkRect src = SkRect::Make(isrc); |
+ this->drawImageRect(image, &src, dst, paint, constraint); |
+} |
+ |
void SkCanvas::drawImageNine(const SkImage* image, const SkIRect& center, const SkRect& dst, |
const SkPaint* paint) { |
if (dst.isEmpty()) { |
@@ -1790,6 +1796,7 @@ void SkCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar dx, SkScalar dy, cons |
this->onDrawBitmap(bitmap, dx, dy, paint); |
} |
+#ifdef SK_SUPPORT_LEGACY_DRAWBITMAPRECTFLAGS_TYPE |
void SkCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, |
const SkPaint* paint, DrawBitmapRectFlags flags) { |
if (bitmap.drawsNothing() || dst.isEmpty()) { |
@@ -1797,6 +1804,7 @@ void SkCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, c |
} |
this->onDrawBitmapRect(bitmap, src, dst, paint, (SK_VIRTUAL_CONSTRAINT_TYPE)flags); |
} |
+#endif |
void SkCanvas::drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, |
const SkPaint* paint, SrcRectConstraint constraint) { |
@@ -1806,6 +1814,12 @@ void SkCanvas::drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const S |
this->onDrawBitmapRect(bitmap, src, dst, paint, (SK_VIRTUAL_CONSTRAINT_TYPE)constraint); |
} |
+void SkCanvas::drawBitmapRect(const SkBitmap& bitmap, const SkIRect& isrc, const SkRect& dst, |
+ const SkPaint* paint, SrcRectConstraint constraint) { |
+ SkRect src = SkRect::Make(isrc); |
+ this->drawBitmapRect(bitmap, &src, dst, paint, constraint); |
+} |
+ |
void SkCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, const SkRect& dst, |
const SkPaint* paint) { |
if (bitmap.drawsNothing() || dst.isEmpty()) { |