Add additional guard to the Analytic AA change

This shall fix the DEPS roll.

BUG=skia:

Change-Id: I3ac208a8025c3408729b9e24e9c01e9f007a1799
Reviewed-on: https://skia-review.googlesource.com/5329
Reviewed-by: Yuqian Li <liyuqian@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
This commit is contained in:
Yuqian Li 2016-11-29 17:28:39 -05:00 committed by Skia Commit-Bot
parent 2d38b22cc3
commit 84aa30d39e

View File

@ -114,6 +114,10 @@ bool SkAnalyticQuadraticEdge::updateQuadratic() {
if (SkAbs32(dy >> shift) >= SK_Fixed1 * 2) { // only snap when dy is large enough
newSnappedY = SkTMin<SkFixed>(fQEdge.fQLastY, SkFixedRoundToFixed(newy));
newSnappedX = newx - SkFixedMul(slope, newy - newSnappedY);
#ifdef SK_ANALYTIC_AA_GUARD
// Note that SkFixedMul use (>> 16) so we'll have different answers
newSnappedX = newx + SkFixedMul(slope, newSnappedY - newy);
#endif
} else {
newSnappedY = SkTMin(fQEdge.fQLastY, snapY(newy));
newSnappedX = newx;