OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #ifndef SkOpSegment_DEFINE | 7 #ifndef SkOpSegment_DEFINE |
8 #define SkOpSegment_DEFINE | 8 #define SkOpSegment_DEFINE |
9 | 9 |
10 #include "SkOpAngle.h" | 10 #include "SkOpAngle.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 #if DEBUG_ACTIVE_SPANS | 166 #if DEBUG_ACTIVE_SPANS |
167 void debugShowActiveSpans() const; | 167 void debugShowActiveSpans() const; |
168 #endif | 168 #endif |
169 #if DEBUG_MARK_DONE | 169 #if DEBUG_MARK_DONE |
170 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding)
; | 170 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding)
; |
171 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding,
int oppWinding); | 171 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding,
int oppWinding); |
172 #endif | 172 #endif |
173 | 173 |
174 const SkOpSpanBase* debugSpan(int id) const; | 174 const SkOpSpanBase* debugSpan(int id) const; |
175 void debugValidate() const; | 175 void debugValidate() const; |
176 void detach(const SkOpSpan* ); | 176 void release(const SkOpSpan* ); |
177 double distSq(double t, const SkOpAngle* opp) const; | 177 double distSq(double t, const SkOpAngle* opp) const; |
178 | 178 |
179 bool done() const { | 179 bool done() const { |
180 SkASSERT(fDoneCount <= fCount); | 180 SkASSERT(fDoneCount <= fCount); |
181 return fDoneCount == fCount; | 181 return fDoneCount == fCount; |
182 } | 182 } |
183 | 183 |
184 bool done(const SkOpAngle* angle) const { | 184 bool done(const SkOpAngle* angle) const { |
185 return angle->start()->starter(angle->end())->done(); | 185 return angle->start()->starter(angle->end())->done(); |
186 } | 186 } |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 SkPathOpsBounds fBounds; // tight bounds | 416 SkPathOpsBounds fBounds; // tight bounds |
417 SkScalar fWeight; | 417 SkScalar fWeight; |
418 int fCount; // number of spans (one for a non-intersecting segment) | 418 int fCount; // number of spans (one for a non-intersecting segment) |
419 int fDoneCount; // number of processed spans (zero initially) | 419 int fDoneCount; // number of processed spans (zero initially) |
420 SkPath::Verb fVerb; | 420 SkPath::Verb fVerb; |
421 bool fVisited; // used by missing coincidence check | 421 bool fVisited; // used by missing coincidence check |
422 SkDEBUGCODE(int fID); | 422 SkDEBUGCODE(int fID); |
423 }; | 423 }; |
424 | 424 |
425 #endif | 425 #endif |
OLD | NEW |