Remove SrcRectConstraint from drawImageRect overloads with no src rect
Bug: skia:5679
Change-Id: I8658099707aab34b047d697b011e741da9019091
Reviewed-on: https://skia-review.googlesource.com/c/165525
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/fuzz/FuzzCanvas.cpp b/fuzz/FuzzCanvas.cpp
index 2bf4edb..4f0e913 100644
--- a/fuzz/FuzzCanvas.cpp
+++ b/fuzz/FuzzCanvas.cpp
@@ -1296,10 +1296,7 @@
if (usePaint) {
fuzz_paint(fuzz, &paint, depth - 1);
}
- SkCanvas::SrcRectConstraint constraint =
- make_fuzz_t<bool>(fuzz) ? SkCanvas::kStrict_SrcRectConstraint
- : SkCanvas::kFast_SrcRectConstraint;
- canvas->drawImageRect(img, src, dst, usePaint ? &paint : nullptr, constraint);
+ canvas->drawImageRect(img, src, dst, usePaint ? &paint : nullptr);
break;
}
case 35: {
@@ -1325,10 +1322,7 @@
if (usePaint) {
fuzz_paint(fuzz, &paint, depth - 1);
}
- SkCanvas::SrcRectConstraint constraint =
- make_fuzz_t<bool>(fuzz) ? SkCanvas::kStrict_SrcRectConstraint
- : SkCanvas::kFast_SrcRectConstraint;
- canvas->drawImageRect(img, dst, usePaint ? &paint : nullptr, constraint);
+ canvas->drawImageRect(img, dst, usePaint ? &paint : nullptr);
break;
}
case 37: {