Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: src/effects/SkAlphaThresholdFilter.cpp

Issue 1885633003: Revert AlphaThresholdFilter to its old behavior wrt premul (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Revert AlphaThresholdFilter to prior behavior wrt premul Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkAlphaThresholdFilter.cpp
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
index 832fcb39e7636b75f733ec20969b3ac4d1941cea..a5484300e1b500357e2a53c9a885fef20a7949fc 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)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698