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

Unified Diff: src/core/SkBlitMask_D32.cpp

Issue 18997003: ARM Skia NEON patches - 03 - Duplicate code removal (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBlitMask_D32.cpp
diff --git a/src/core/SkBlitMask_D32.cpp b/src/core/SkBlitMask_D32.cpp
index 80cc787991ed4431fff727ba6d98f900970c1799..1f16d775b51e2845a6ac5b08b272bd19c761bfeb 100644
--- a/src/core/SkBlitMask_D32.cpp
+++ b/src/core/SkBlitMask_D32.cpp
@@ -383,13 +383,9 @@ static int upscale31To255(int value) {
return value;
}
-static int mul(int a, int b) {
- return a * b >> 8;
-}
-
static int src_alpha_blend(int src, int dst, int srcA, int mask) {
- return dst + mul(src - mul(srcA, dst), mask);
+ return dst + SkAlphaMul(src - SkAlphaMul(srcA, dst), mask);
}
static void LCD16_RowProc_Blend(SkPMColor* SK_RESTRICT dst,
« 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