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

Unified Diff: src/pathops/SkOpSegment.h

Issue 14865019: path ops work in progress (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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/SkOpAngle.cpp ('k') | src/pathops/SkOpSegment.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpSegment.h
===================================================================
--- src/pathops/SkOpSegment.h (revision 9111)
+++ src/pathops/SkOpSegment.h (working copy)
@@ -40,6 +40,10 @@
return count > 1 && fTs[0].fT == 0 && fTs[--count].fT == 1;
}
+ int count() const {
+ return fTs.count();
+ }
+
bool done() const {
SkASSERT(fDoneSpans <= fTs.count());
return fDoneSpans == fTs.count();
@@ -120,6 +124,10 @@
return fTs[lesser].fOppValue;
}
+ const SkOpSegment* other(int index) const {
+ return fTs[index].fOther;
+ }
+
const SkPoint* pts() const {
return fPts;
}
@@ -262,6 +270,7 @@
bool isLinear(int start, int end) const;
bool isMissing(double startT) const;
bool isSimple(int end) const;
+ bool isTiny(const SkOpAngle* angle) const;
SkOpSpan* markAndChaseDoneBinary(int index, int endIndex);
SkOpSpan* markAndChaseDoneUnary(int index, int endIndex);
SkOpSpan* markAndChaseWinding(const SkOpAngle* angle, int winding, int oppWinding);
@@ -281,6 +290,7 @@
int* maxWinding, int* sumWinding, int* oppMaxWinding, int* oppSumWinding);
static bool SortAngles(const SkTDArray<SkOpAngle>& angles, SkTDArray<SkOpAngle*>* angleList);
void subDivide(int start, int end, SkPoint edge[4]) const;
+ void subDivide(int start, int end, SkDCubic* result) const;
void undoneSpan(int* start, int* end);
int updateOppWindingReverse(const SkOpAngle* angle) const;
int updateWindingReverse(const SkOpAngle* angle) const;
@@ -348,7 +358,6 @@
SkOpSegment* nextChase(int* index, const int step, int* min, SkOpSpan** last);
bool serpentine(int tStart, int tEnd) const;
void subDivideBounds(int start, int end, SkPathOpsBounds* bounds) const;
- bool tiny(const SkOpAngle* angle) const;
static void TrackOutside(SkTDArray<double>* outsideTs, double end, double start);
int updateOppWinding(int index, int endIndex) const;
int updateOppWinding(const SkOpAngle* angle) const;
« no previous file with comments | « src/pathops/SkOpAngle.cpp ('k') | src/pathops/SkOpSegment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698