diff options
author | liyuqian <liyuqian@google.com> | 2016-11-14 11:17:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-14 11:17:16 -0800 |
commit | bfebe22ed54d1e3a00888292f10ed8b9714135d3 (patch) | |
tree | 8167550331439bd1f783e71be9476a0e091fca45 /src/core/SkScan_AAAPath.cpp | |
parent | 286b96f876953c94c178e3abbeb4eab186ad1fef (diff) |
Set analytic AA as default.
We'll use https://codereview.chromium.org/2471123002/ to keep Chrome from using
analytic AA until we fix all the Chrome tests.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2471133002
Committed: https://skia.googlesource.com/skia/+/dca4f6530013cf43a2557ccb07f5cb4fd916b8e8
Review-Url: https://codereview.chromium.org/2471133002
Diffstat (limited to 'src/core/SkScan_AAAPath.cpp')
-rw-r--r-- | src/core/SkScan_AAAPath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkScan_AAAPath.cpp b/src/core/SkScan_AAAPath.cpp index aab253ce8d..8ca2fea714 100644 --- a/src/core/SkScan_AAAPath.cpp +++ b/src/core/SkScan_AAAPath.cpp @@ -485,7 +485,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) { |