Skip to content

Commit

Permalink
Skip bad line segments inside gen_alpha_deltas
Browse files Browse the repository at this point in the history
Bug: chromium:847386
Change-Id: I5bb3268c27ecfbd66268adbc36be3ea72e0a69ba
Reviewed-on: https://skia-review.googlesource.com/131324
Reviewed-by: Cary Clark <[email protected]>
Commit-Queue: Cary Clark <[email protected]>
Auto-Submit: Yuqian Li <[email protected]>
  • Loading branch information
liyuqian authored and Skia Commit-Bot committed Jun 1, 2018
1 parent fbe7166 commit 9ea47be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/SkScan_DAAPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ void gen_alpha_deltas(const SkPath& path, const SkIRect& clippedIR, const SkIRec
}

SkAnalyticEdge l, r;
l.setLine(lb->fP0, lb->fP1);
r.setLine(rb->fP0, rb->fP1);
if (!l.setLine(lb->fP0, lb->fP1) || !r.setLine(rb->fP0, rb->fP1)) {
continue;
}

SkFixed xorUpperY = l.fUpperY ^ r.fUpperY;
SkFixed xorLowerY = l.fLowerY ^ r.fLowerY;
Expand Down

0 comments on commit 9ea47be

Please sign in to comment.