fix test to use new api

Change-Id: I58360468b4d913b7cd2c285193060a0224a90356
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/338038
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2020-11-24 09:19:21 -05:00 committed by Skia Commit-Bot
parent 68ac3b9ec3
commit 2aa3b8dee4

View File

@ -1303,7 +1303,8 @@ static void test_scale_pixels(skiatest::Reporter* reporter, const SkImage* image
for (auto chint : { SkImage::kDisallow_CachingHint, SkImage::kAllow_CachingHint }) {
SkAutoPixmapStorage scaled;
scaled.alloc(info);
if (!image->scalePixels(scaled, kLow_SkFilterQuality, chint)) {
if (!image->scalePixels(scaled, SkSamplingOptions(SkFilterMode::kLinear,
SkMipmapMode::kNone), chint)) {
ERRORF(reporter, "Failed to scale image");
continue;
}