More hiding of legacy drawImage calls
Also cleanup some of the duplicate code in SkRecords
Bug: skia:7650
Change-Id: I4d3167a892c126c19a54002beab25c9a6c96fa5d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357000
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/gm/bitmappremul.cpp b/gm/bitmappremul.cpp
index 35c9eb1..b11f47d 100644
--- a/gm/bitmappremul.cpp
+++ b/gm/bitmappremul.cpp
@@ -53,7 +53,7 @@
// Using draw rather than readPixels to suppress dither
SkPaint paint;
paint.setBlendMode(SkBlendMode::kSrc);
- SkCanvas{ bitmap }.drawImage(make_argb8888_gradient(), 0, 0, &paint);
+ SkCanvas{ bitmap }.drawImage(make_argb8888_gradient(), 0, 0, SkSamplingOptions(), &paint);
return bitmap.asImage();
}
@@ -82,7 +82,7 @@
// Using draw rather than readPixels to suppress dither
SkPaint paint;
paint.setBlendMode(SkBlendMode::kSrc);
- SkCanvas{ bitmap }.drawImage(make_argb8888_stripes(), 0, 0, &paint);
+ SkCanvas{ bitmap }.drawImage(make_argb8888_stripes(), 0, 0, SkSamplingOptions(), &paint);
return bitmap.asImage();
}