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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 return false; | 179 return false; |
180 } | 180 } |
181 return true; | 181 return true; |
182 } | 182 } |
183 #endif | 183 #endif |
184 | 184 |
185 void release(const SkOpSpan* ); | 185 void release(const SkOpSpan* ); |
186 double distSq(double t, const SkOpAngle* opp) const; | 186 double distSq(double t, const SkOpAngle* opp) const; |
187 | 187 |
188 bool done() const { | 188 bool done() const { |
189 SkASSERT(this->globalState()->debugSkipAssert() || fDoneCount <= fCount)
; | 189 SkOPASSERT(fDoneCount <= fCount); |
190 return fDoneCount == fCount; | 190 return fDoneCount == fCount; |
191 } | 191 } |
192 | 192 |
193 bool done(const SkOpAngle* angle) const { | 193 bool done(const SkOpAngle* angle) const { |
194 return angle->start()->starter(angle->end())->done(); | 194 return angle->start()->starter(angle->end())->done(); |
195 } | 195 } |
196 | 196 |
197 SkDPoint dPtAtT(double mid) const { | 197 SkDPoint dPtAtT(double mid) const { |
198 return (*CurveDPointAtT[fVerb])(fPts, fWeight, mid); | 198 return (*CurveDPointAtT[fVerb])(fPts, fWeight, mid); |
199 } | 199 } |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 int fDoneCount; // number of processed spans (zero initially) | 439 int fDoneCount; // number of processed spans (zero initially) |
440 SkPath::Verb fVerb; | 440 SkPath::Verb fVerb; |
441 bool fVisited; // used by missing coincidence check | 441 bool fVisited; // used by missing coincidence check |
442 #if DEBUG_COINCIDENCE | 442 #if DEBUG_COINCIDENCE |
443 mutable bool fDebugVisited; // used by debug missing coincidence check | 443 mutable bool fDebugVisited; // used by debug missing coincidence check |
444 #endif | 444 #endif |
445 SkDEBUGCODE(int fID); | 445 SkDEBUGCODE(int fID); |
446 }; | 446 }; |
447 | 447 |
448 #endif | 448 #endif |
OLD | NEW |