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

Unified Diff: src/pathops/SkOpSpan.h

Issue 1111333002: compute initial winding from projected rays (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add missing test reference Created 5 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/SkOpSegment.cpp ('k') | src/pathops/SkOpSpan.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpSpan.h
diff --git a/src/pathops/SkOpSpan.h b/src/pathops/SkOpSpan.h
index ee2f332440be740eabce47e740752bd81f718875..1d535d2635b534f63933e6f3a676e1741b076c33 100644
--- a/src/pathops/SkOpSpan.h
+++ b/src/pathops/SkOpSpan.h
@@ -124,7 +124,6 @@ protected:
class SkOpSpanBase {
public:
- bool addSimpleAngle(bool checkFrom , SkChunkAlloc* );
void align();
bool aligned() const {
@@ -333,8 +332,6 @@ protected: // no direct access to internals to avoid treating a span base as a
class SkOpSpan : public SkOpSpanBase {
public:
- void applyCoincidence(SkOpSpan* opp);
-
bool clearCoincident() {
SkASSERT(!final());
if (fCoincident == this) {
@@ -432,12 +429,7 @@ public:
fToAngle = angle;
}
- void setWindSum(int windSum) {
- SkASSERT(!final());
- SkASSERT(fWindSum == SK_MinS32 || fWindSum == windSum);
- SkASSERT(!DEBUG_LIMIT_WIND_SUM || abs(windSum) <= DEBUG_LIMIT_WIND_SUM);
- fWindSum = windSum;
- }
+ void setWindSum(int windSum);
void setWindValue(int windValue) {
SkASSERT(!final());
@@ -446,6 +438,8 @@ public:
fWindValue = windValue;
}
+ bool sortableTop(SkOpContour* );
+
SkOpAngle* toAngle() const {
SkASSERT(!final());
return fToAngle;
@@ -469,6 +463,7 @@ private: // no direct access to internals to avoid treating a span base as a sp
int fOppSum; // for binary operators: the opposite winding sum
int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident
int fOppValue; // normally 0 -- when binary coincident edges combine, opp value goes here
+ int fTopTTry; // specifies direction and t value to try next
bool fDone; // if set, this span to next higher T has been processed
};
« no previous file with comments | « src/pathops/SkOpSegment.cpp ('k') | src/pathops/SkOpSpan.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698