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