aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkOpCoincidence.cpp
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@google.com>2016-12-16 17:17:25 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-16 22:47:00 +0000
commitab2d73b06fe6c518be1d399a79c9cc39db21abb6 (patch)
treeb0a7c6a51acbaeb6aaca55361a838daabd506003 /src/pathops/SkOpCoincidence.cpp
parentee1c73fc1b8a616ac79572759b02435698171fbf (diff)
rework xor to be more like winding
Pathops is very well exercised with winding paths, but less so with xor (even odd) paths. Rewrite the xor main loop to look like the winding one to take advantage of the latter's bug fixes. TBR=reed@google.com BUG=skia:6041 Change-Id: Ied8d522254a327b1817b54f0abbf4414f5fab7da Reviewed-on: https://skia-review.googlesource.com/6228 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'src/pathops/SkOpCoincidence.cpp')
-rw-r--r--src/pathops/SkOpCoincidence.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathops/SkOpCoincidence.cpp b/src/pathops/SkOpCoincidence.cpp
index 1dd34ada93..9f841114d5 100644
--- a/src/pathops/SkOpCoincidence.cpp
+++ b/src/pathops/SkOpCoincidence.cpp
@@ -162,7 +162,7 @@ bool SkCoincidentSpans::ordered(bool* result) const {
do {
const SkOpPtT* opp = next->contains(oppSeg);
if (!opp) {
- SkOPOBJASSERT(start, 0); // may assert if coincident span isn't fully processed
+// SkOPOBJASSERT(start, 0); // may assert if coincident span isn't fully processed
return false;
}
if ((oppLastT > opp->fT) != flipped) {