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

Unified Diff: src/effects/SkLumaXfermode.cpp

Issue 23453004: Update SkLumaMaskXfermode partial coverage handling. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Always lerp to dst. Created 7 years, 4 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/SkLumaXfermode.cpp
diff --git a/src/effects/SkLumaXfermode.cpp b/src/effects/SkLumaXfermode.cpp
index df0a663c3b224f80934455dc176efd94b9409e23..88b0ddfbc341c3621df6f2e1836260dcc7616caa 100644
--- a/src/effects/SkLumaXfermode.cpp
+++ b/src/effects/SkLumaXfermode.cpp
@@ -76,7 +76,8 @@ void SkLumaMaskXfermode::xfer32(SkPMColor dst[], const SkPMColor src[],
if (cov) {
unsigned resC = luma_proc(a[i], b[i]);
if (cov < 255) {
- resC = SkAlphaMulQ(resC, SkAlpha255To256(cov));
+ resC = SkFastFourByteInterp256(resC, dst[i],
+ SkAlpha255To256(cov));
}
dst[i] = resC;
}
« 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