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, |