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

Unified Diff: src/core/SkBlitRow_D16.cpp

Issue 847363002: skia: blend32_16_row for neon version (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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
Index: src/core/SkBlitRow_D16.cpp
diff --git a/src/core/SkBlitRow_D16.cpp b/src/core/SkBlitRow_D16.cpp
index 6bf4cea9974f5d4488a65bd6aec532ccbe8096e5..d875cca580861d639def3eb42bf3e3135193277e 100644
--- a/src/core/SkBlitRow_D16.cpp
+++ b/src/core/SkBlitRow_D16.cpp
@@ -211,10 +211,10 @@ static uint32_t pmcolor_to_expand16(SkPMColor c) {
return (g << 24) | (r << 13) | (b << 2);
}
-static void Color32A_D565(uint16_t dst[], SkPMColor src, int count, int x, int y) {
+static void Color32A_D565(uint16_t dst[], SkPMColor src[], int count, int x, int y) {
SkASSERT(count > 0);
- uint32_t src_expand = pmcolor_to_expand16(src);
- unsigned scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3;
+ uint32_t src_expand = pmcolor_to_expand16(*src);
+ unsigned scale = SkAlpha255To256(0xFF - SkGetPackedA32(*src)) >> 3;
do {
uint32_t dst_expand = SkExpand_rgb_16(*dst) * scale;
*dst = SkCompact_rgb_16((src_expand + dst_expand) >> 5);

Powered by Google App Engine
This is Rietveld 408576698