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>
This commit is contained in:
Yuqian Li 2018-02-12 09:59:34 +08:00 committed by Skia Commit-Bot
parent 78c110e2f0
commit 3a2b803133

View File

@ -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);