Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1352)

Unified Diff: src/pathops/SkOpAngle.cpp

Issue 75453003: optimize pathops coverage (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: remove unused code now that testing is complete Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/pathops/SkOpAngle.cpp
diff --git a/src/pathops/SkOpAngle.cpp b/src/pathops/SkOpAngle.cpp
index 4144add6fb2008da91a058fe9e4ede7376a513df..83ca55c4fea2e265f061719a00ac0f7bf53f0a87 100644
--- a/src/pathops/SkOpAngle.cpp
+++ b/src/pathops/SkOpAngle.cpp
@@ -108,7 +108,9 @@ bool SkOpAngle::operator<(const SkOpAngle& rh) const { // this/lh: left-hand; r
}
// see if either curve can be lengthened before trying the tangent
if (fSegment->other(fEnd) != rh.fSegment // tangents not absolutely identical
- && rh.fSegment->other(rh.fEnd) != fSegment) { // and not intersecting
+ && rh.fSegment->other(rh.fEnd) != fSegment
+ && y != -DBL_EPSILON
+ && ry != -DBL_EPSILON) { // and not intersecting
SkOpAngle longer = *this;
SkOpAngle rhLonger = rh;
if ((longer.lengthen(rh) | rhLonger.lengthen(*this)) // lengthen both

Powered by Google App Engine
This is Rietveld 408576698