ARM Skia NEON patches - 03 - Duplicate code removal
Misc: remove some duplicate code SkAlphaMul does exactly the same thing as the mul function above, so use it. BUG= R=djsollen@google.com Author: kevin.petit.arm@gmail.com Review URL: https://chromiumcodereview.appspot.com/18997003 git-svn-id: http://skia.googlecode.com/svn/trunk@10070 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
e38e53b532
commit
12e0cda1dd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user