Commit 09a9bad2 authored by Brian Salomon's avatar Brian Salomon Committed by Commit Bot

Remove kStrict_SrcRectConstraint argument when scaling StaticBitmap.

This version of SkCanvas::drawImageRect doesn't use the
constraint as there is no source rect.

Bug: skia:5679
Change-Id: I16bc18690704e2c2bd30f509e2fc54422b78ed83
Reviewed-on: https://chromium-review.googlesource.com/c/1302656Reviewed-by: default avatarFlorin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603203}
parent be4a3ee0
......@@ -348,7 +348,7 @@ scoped_refptr<StaticBitmapImage> ScaleImage(
sk_image.get(),
SkRect::MakeWH(parsed_options.resize_width,
parsed_options.resize_height),
&paint, SkCanvas::SrcRectConstraint::kStrict_SrcRectConstraint);
&paint);
resized_sk_image = surface->makeImageSnapshot();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment