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); |