aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-12 12:39:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-12 12:39:26 -0700
commit247e5341a483053862213f1bdda4ce5c47544b8f (patch)
treeba54ba3d9f84f2950b738d0c59483135d82a98b8 /src
parent9fd07e5cc4d693b39397d00ae0a80f0cab420f7b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/effects/SkAlphaThresholdFilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
index 832fcb39e7..a5484300e1 100644
--- a/src/effects/SkAlphaThresholdFilter.cpp
+++ b/src/effects/SkAlphaThresholdFilter.cpp
@@ -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)) {