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

Unified Diff: src/core/SkBlitRow_D32.cpp

Issue 1145283003: Re-proc SkBlitRow::Color32 for ARM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: ARM builds may be using _opts_none.cpp (iOS) Created 5 years, 7 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 | « include/core/SkBlitRow.h ('k') | src/opts/SkBlitRow_opts_arm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBlitRow_D32.cpp
diff --git a/src/core/SkBlitRow_D32.cpp b/src/core/SkBlitRow_D32.cpp
index f5cb45d0fa8beb5d8e44a5eac9509b91a9e674e4..07a5d875b88870f17a1e6d8cf23bfc3377ce0ae8 100644
--- a/src/core/SkBlitRow_D32.cpp
+++ b/src/core/SkBlitRow_D32.cpp
@@ -144,6 +144,11 @@ void SkBlitRow::Color32(SkPMColor dst[], const SkPMColor src[], int count, SkPMC
case 255: sk_memset32(dst, color, count); return;
}
+ // This Sk4px impl works great on other platforms or when we have NEON.
+#if defined(SK_CPU_ARM32) && !defined(SK_ARM_HAS_NEON)
+ if (auto proc = PlatformColor32Proc()) { return proc(dst, src, count, color); }
+#endif
+
unsigned invA = 255 - SkGetPackedA32(color);
invA += invA >> 7;
SkASSERT(invA < 256); // We've already handled alpha == 0 above.
« no previous file with comments | « include/core/SkBlitRow.h ('k') | src/opts/SkBlitRow_opts_arm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698