aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScan_AAAPath.cpp
diff options
context:
space:
mode:
authorGravatar Yuqian Li <liyuqian@google.com>2018-02-12 09:59:34 +0800
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-12 02:20:37 +0000
commit3a2b8031331cac07069c7583e03dae5bba526ac8 (patch)
tree3198125485c04e1dc503546dc41a5e1ef0d6ee81 /src/core/SkScan_AAAPath.cpp
parent78c110e2f0faefeecc8c8c19f6dcb00e738bffc7 (diff)
Remove SK_SUPPORT_LEGACY_AAA_SMOOTH
TBR: caryclark@google.com Bug: skia:7573 Change-Id: I94a3101bf3f2f4d253b9380d2cf5b450bd252118 Reviewed-on: https://skia-review.googlesource.com/106460 Reviewed-by: Yuqian Li <liyuqian@google.com> Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'src/core/SkScan_AAAPath.cpp')
-rw-r--r--src/core/SkScan_AAAPath.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/SkScan_AAAPath.cpp b/src/core/SkScan_AAAPath.cpp
index 2df5338e9a..e4e6701cea 100644
--- a/src/core/SkScan_AAAPath.cpp
+++ b/src/core/SkScan_AAAPath.cpp
@@ -976,11 +976,7 @@ static inline bool isSmoothEnough(SkAnalyticEdge* leftE, SkAnalyticEdge* riteE,
return false;
}
// Ensure that currE is the next left edge and nextCurrE is the next right edge. Swap if not.
-#ifdef SK_SUPPORT_LEGACY_AAA_SMOOTH
- if (*nextCurrE < *currE) {
-#else
if (nextCurrE->fUpperX < currE->fUpperX) {
-#endif
SkTSwap(currE, nextCurrE);
}
return isSmoothEnough(leftE, currE, stop_y) && isSmoothEnough(riteE, nextCurrE, stop_y);