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

Unified Diff: src/pathops/SkIntersectionHelper.h

Issue 131103009: update pathops to circle sort (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: disable old test that still fails on linux 32 release Created 6 years, 8 months 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
« no previous file with comments | « src/pathops/SkDQuadLineIntersection.cpp ('k') | src/pathops/SkIntersections.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkIntersectionHelper.h
diff --git a/src/pathops/SkIntersectionHelper.h b/src/pathops/SkIntersectionHelper.h
index fa1aa697c29461bd03e31482678c172ad47a3ee8..4e8c658ec23d49dd7da3a917fc3f2cb38275f26e 100644
--- a/src/pathops/SkIntersectionHelper.h
+++ b/src/pathops/SkIntersectionHelper.h
@@ -46,8 +46,8 @@ public:
return fContour->addT(fIndex, other.fContour, other.fIndex, pt, newT);
}
- int addSelfT(const SkIntersectionHelper& other, const SkPoint& pt, double newT) {
- return fContour->addSelfT(fIndex, other.fContour, other.fIndex, pt, newT);
+ int addSelfT(const SkPoint& pt, double newT) {
+ return fContour->addSelfT(fIndex, pt, newT);
}
bool advance() {
@@ -141,20 +141,10 @@ public:
return y() != pts()[0].fY;
}
-#ifdef SK_DEBUG
- void dump() {
- SkDPoint::dump(pts()[0]);
- SkDPoint::dump(pts()[1]);
- if (verb() >= SkPath::kQuad_Verb) {
- SkDPoint::dump(pts()[2]);
- }
- if (verb() >= SkPath::kCubic_Verb) {
- SkDPoint::dump(pts()[3]);
- }
- }
-#endif
-
private:
+ // utility callable by the user from the debugger when the implementation code is linked in
+ void dump() const;
+
SkOpContour* fContour;
int fIndex;
int fLast;
« no previous file with comments | « src/pathops/SkDQuadLineIntersection.cpp ('k') | src/pathops/SkIntersections.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698