Index: src/core/SkScan_AAAPath.cpp |
diff --git a/src/core/SkScan_AAAPath.cpp b/src/core/SkScan_AAAPath.cpp |
index d5d931d902db68a2404dbde1e92f4efef4f5039e..16b5561a9dbe23b9c3303045e6dd5462872f04de 100644 |
--- a/src/core/SkScan_AAAPath.cpp |
+++ b/src/core/SkScan_AAAPath.cpp |
@@ -481,7 +481,7 @@ |
} |
static inline SkAlpha getPartialAlpha(SkAlpha alpha, SkFixed partialHeight) { |
- return SkToU8(SkFixedRoundToInt(alpha * partialHeight)); |
+ return (alpha * partialHeight + SK_FixedHalf) >> 16; |
} |
static inline SkAlpha getPartialAlpha(SkAlpha alpha, SkAlpha fullAlpha) { |