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

Unified Diff: src/core/SkBlitter_RGB16.cpp

Issue 1268513003: Revert of Optimize RGB16 blitH functions with NEON for ARM platform. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | src/opts/SkBlitMask_opts_arm_neon.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBlitter_RGB16.cpp
diff --git a/src/core/SkBlitter_RGB16.cpp b/src/core/SkBlitter_RGB16.cpp
index b481b27b571921f7deacb2bbec3579ea26af45ce..8caf90831231fdcc61cd6c166e193a9eab1ee281 100644
--- a/src/core/SkBlitter_RGB16.cpp
+++ b/src/core/SkBlitter_RGB16.cpp
@@ -25,10 +25,6 @@
extern void SkRGB16BlitterBlitV_neon(uint16_t* device,
int height,
size_t deviceRB,
- unsigned scale,
- uint32_t src32);
-extern void SkRGB16BlitterBlitH_neon(uint16_t* device,
- int width,
unsigned scale,
uint32_t src32);
#else
@@ -342,14 +338,10 @@
uint32_t src32 = srcExpanded * scale5;
scale5 = 32 - scale5; // now we can use it on the device
int n = count;
-#if SK_ARM_NEON_IS_ALWAYS && defined(SK_CPU_LENDIAN)
- SkRGB16BlitterBlitH_neon(device, n, scale5, src32);
-#else
do {
uint32_t dst32 = SkExpand_rgb_16(*device) * scale5;
*device++ = SkCompact_rgb_16((src32 + dst32) >> 5);
} while (--n != 0);
-#endif
goto DONE;
}
}
@@ -609,14 +601,10 @@
unsigned scale5 = SkAlpha255To256(aa) * scale >> (8 + 3);
uint32_t src32 = srcExpanded * scale5;
scale5 = 32 - scale5;
-#if SK_ARM_NEON_IS_ALWAYS && defined(SK_CPU_LENDIAN)
- SkRGB16BlitterBlitH_neon(device, count, scale5, src32);
-#else
do {
uint32_t dst32 = SkExpand_rgb_16(*device) * scale5;
*device++ = SkCompact_rgb_16((src32 + dst32) >> 5);
} while (--count != 0);
-#endif
continue;
}
device += count;
« no previous file with comments | « no previous file | src/opts/SkBlitMask_opts_arm_neon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698