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:
robertphillips 2016-04-12 12:39:26 -07:00 committed by Commit bot
parent 9fd07e5cc4
commit 247e5341a4

View File

@ -412,7 +412,7 @@ sk_sp<SkSpecialImage> SkAlphaThresholdFilterImpl::onFilterImage(SkSpecialImage*
}
SkImageInfo info = SkImageInfo::MakeN32(bounds.width(), bounds.height(),
inputBM.alphaType());
kPremul_SkAlphaType);
SkBitmap dst;
if (!dst.tryAllocPixels(info)) {