Migrate to drawImage w/ sampling
Bug: skia:7650
Change-Id: Icb99ee9f7142fe1ca22f9fa66b1467486ce576a6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357598
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/gm/anisotropic.cpp b/gm/anisotropic.cpp
index fb5f696..995fb5c 100644
--- a/gm/anisotropic.cpp
+++ b/gm/anisotropic.cpp
@@ -65,8 +65,7 @@
void draw(SkCanvas* canvas, int x, int y, int xSize, int ySize) {
SkRect r = SkRect::MakeXYWH(SkIntToScalar(x), SkIntToScalar(y),
SkIntToScalar(xSize), SkIntToScalar(ySize));
- canvas->drawImageRect(fImage.get(), r, fSampling, nullptr,
- SkCanvas::kStrict_SrcRectConstraint);
+ canvas->drawImageRect(fImage, r, fSampling);
}
void onDraw(SkCanvas* canvas) override {