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

Unified Diff: src/core/SkColorSpaceXformOpts.h

Issue 2221933002: Fix alpha bug in SkColorXform (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: R to c Created 4 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/core/SkColorSpaceXformOpts.h
diff --git a/src/core/SkColorSpaceXformOpts.h b/src/core/SkColorSpaceXformOpts.h
index d0862c74f235bd798d2336c46984723a8fb84e2e..e0ff935a31fb04afaeef29c4bbf79a5d6c273d40 100644
--- a/src/core/SkColorSpaceXformOpts.h
+++ b/src/core/SkColorSpaceXformOpts.h
@@ -369,11 +369,11 @@ static void color_xform_RGBA(void* dst, const uint32_t* src, int len,
}
load(src, r, g, b, a, srcTables);
- src += 4;
- len -= 4;
store(dst, src - 4, dr, dg, db, da, dstTables, kSwapRB);
dst = SkTAddOffset<void>(dst, 4 * sizeOfDstPixel);
+ src += 4;
+ len -= 4;
}
transform_gamut(r, g, b, a, rXgXbX, rYgYbY, rZgZbZ, dr, dg, db, da);
@@ -393,7 +393,6 @@ static void color_xform_RGBA(void* dst, const uint32_t* src, int len,
Sk4f rgba;
transform_gamut_1(r, g, b, rXgXbX, rYgYbY, rZgZbZ, rgba);
-
translate_gamut_1(rTgTbT, rgba);
store_1(dst, src, rgba, a, dstTables, kSwapRB);
« 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