Index: src/utils/SkPaintFilterCanvas.cpp |
diff --git a/src/utils/SkPaintFilterCanvas.cpp b/src/utils/SkPaintFilterCanvas.cpp |
index 1abebef8cad5e517da186c9dc945d7ed22a15a3f..3e589e6146151e925c43c0967e955fe82787e9c6 100644 |
--- a/src/utils/SkPaintFilterCanvas.cpp |
+++ b/src/utils/SkPaintFilterCanvas.cpp |
@@ -74,9 +74,10 @@ void SkPaintFilterCanvas::onDrawBitmap(const SkBitmap& bm, SkScalar left, SkScal |
} |
void SkPaintFilterCanvas::onDrawBitmapRect(const SkBitmap& bm, const SkRect* src, const SkRect& dst, |
- const SkPaint* paint, DrawBitmapRectFlags flags) { |
+ const SkPaint* paint, |
+ SK_VIRTUAL_CONSTRAINT_TYPE constraint) { |
AutoPaintFilter apf(this, kBitmap_Type, paint); |
- this->INHERITED::onDrawBitmapRect(bm, src, dst, apf.paint(), flags); |
+ this->INHERITED::onDrawBitmapRect(bm, src, dst, apf.paint(), constraint); |
} |
void SkPaintFilterCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar top, |
@@ -86,9 +87,11 @@ void SkPaintFilterCanvas::onDrawImage(const SkImage* image, SkScalar left, SkSca |
} |
void SkPaintFilterCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, |
- const SkRect& dst, const SkPaint* paint) { |
+ const SkRect& dst, const SkPaint* paint |
+ SRC_RECT_CONSTRAINT_PARAM(constraint)) { |
AutoPaintFilter apf(this, kBitmap_Type, paint); |
- this->INHERITED::onDrawImageRect(image, src, dst, apf.paint()); |
+ this->INHERITED::onDrawImageRect(image, src, dst, apf.paint() |
+ SRC_RECT_CONSTRAINT_ARG(constraint)); |
} |
void SkPaintFilterCanvas::onDrawBitmapNine(const SkBitmap& bm, const SkIRect& center, |