Revert AlphaThresholdFilter to its old behavior wrt premul
TBR=borenet@google.com This fixes the "serialize-8888 gm imagealphathreshold_surface" failure related to: https://codereview.chromium.org/1879643003/ (Switch AlphaThresholdFilter over to new onFilterImage interface) GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1885633003 Review URL: https://codereview.chromium.org/1885633003
This commit is contained in:
parent
9fd07e5cc4
commit
247e5341a4
@ -412,7 +412,7 @@ sk_sp<SkSpecialImage> SkAlphaThresholdFilterImpl::onFilterImage(SkSpecialImage*
|
|||||||
}
|
}
|
||||||
|
|
||||||
SkImageInfo info = SkImageInfo::MakeN32(bounds.width(), bounds.height(),
|
SkImageInfo info = SkImageInfo::MakeN32(bounds.width(), bounds.height(),
|
||||||
inputBM.alphaType());
|
kPremul_SkAlphaType);
|
||||||
|
|
||||||
SkBitmap dst;
|
SkBitmap dst;
|
||||||
if (!dst.tryAllocPixels(info)) {
|
if (!dst.tryAllocPixels(info)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user