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/tests/CompressedBackendAllocationTest.cpp b/tests/CompressedBackendAllocationTest.cpp
index 88b81e0..9fbe996 100644
--- a/tests/CompressedBackendAllocationTest.cpp
+++ b/tests/CompressedBackendAllocationTest.cpp
@@ -73,6 +73,8 @@
 
     SkCanvas* canvas = surf->getCanvas();
 
+    const SkSamplingOptions sampling(SkFilterMode::kLinear,
+                                     SkMipmapMode::kLinear);
     SkPaint p;
     SkPaintPriv::SetFQ(&p, kMedium_SkFilterQuality); // to force mipMapping
     p.setBlendMode(SkBlendMode::kSrc);
@@ -88,7 +90,7 @@
         canvas->clear(SK_ColorTRANSPARENT);
 
         SkRect r = SkRect::MakeWH(rectSize, rectSize);
-        canvas->drawImageRect(img, r, &p);
+        canvas->drawImageRect(img, r, sampling, &p);
 
         SkImageInfo readbackII = SkImageInfo::Make(rectSize, rectSize,
                                                    kRGBA_8888_SkColorType,