| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 int* less, int* more) const; | 416 int* less, int* more) const; |
| 417 void checkLinks(const SkOpSpan* , | 417 void checkLinks(const SkOpSpan* , |
| 418 SkTArray<MissingSpan, true>* missingSpans) const; | 418 SkTArray<MissingSpan, true>* missingSpans) const; |
| 419 static void CheckOneLink(const SkOpSpan* test, const SkOpSpan* oSpan, | 419 static void CheckOneLink(const SkOpSpan* test, const SkOpSpan* oSpan, |
| 420 const SkOpSpan* oFirst, const SkOpSpan* oLast, | 420 const SkOpSpan* oFirst, const SkOpSpan* oLast, |
| 421 const SkOpSpan** missingPtr, | 421 const SkOpSpan** missingPtr, |
| 422 SkTArray<MissingSpan, true>* missingSpans); | 422 SkTArray<MissingSpan, true>* missingSpans); |
| 423 int checkSetAngle(int tIndex) const; | 423 int checkSetAngle(int tIndex) const; |
| 424 void checkSmallCoincidence(const SkOpSpan& span, SkTArray<MissingSpan, true>
* ); | 424 void checkSmallCoincidence(const SkOpSpan& span, SkTArray<MissingSpan, true>
* ); |
| 425 bool coincidentSmall(const SkPoint& pt, double t, const SkOpSegment* other)
const; | 425 bool coincidentSmall(const SkPoint& pt, double t, const SkOpSegment* other)
const; |
| 426 bool clockwise(int tStart, int tEnd) const; | 426 bool clockwise(int tStart, int tEnd, bool* swap) const; |
| 427 static void ComputeOneSum(const SkOpAngle* baseAngle, SkOpAngle* nextAngle, | 427 static void ComputeOneSum(const SkOpAngle* baseAngle, SkOpAngle* nextAngle, |
| 428 SkOpAngle::IncludeType ); | 428 SkOpAngle::IncludeType ); |
| 429 static void ComputeOneSumReverse(const SkOpAngle* baseAngle, SkOpAngle* next
Angle, | 429 static void ComputeOneSumReverse(const SkOpAngle* baseAngle, SkOpAngle* next
Angle, |
| 430 SkOpAngle::IncludeType ); | 430 SkOpAngle::IncludeType ); |
| 431 bool containsT(double t, const SkOpSegment* other, double otherT) const; | 431 bool containsT(double t, const SkOpSegment* other, double otherT) const; |
| 432 bool decrementSpan(SkOpSpan* span); | 432 bool decrementSpan(SkOpSpan* span); |
| 433 int findEndSpan(int endIndex) const; | 433 int findEndSpan(int endIndex) const; |
| 434 int findStartSpan(int startIndex) const; | 434 int findStartSpan(int startIndex) const; |
| 435 int firstActive(int tIndex) const; | 435 int firstActive(int tIndex) const; |
| 436 const SkOpSpan& firstSpan(const SkOpSpan& thisSpan) const; | 436 const SkOpSpan& firstSpan(const SkOpSpan& thisSpan) const; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 bool fSmall; // set if some span is small | 544 bool fSmall; // set if some span is small |
| 545 bool fTiny; // set if some span is tiny | 545 bool fTiny; // set if some span is tiny |
| 546 #if defined(SK_DEBUG) || !FORCE_RELEASE | 546 #if defined(SK_DEBUG) || !FORCE_RELEASE |
| 547 int fID; | 547 int fID; |
| 548 #endif | 548 #endif |
| 549 | 549 |
| 550 friend class PathOpsSegmentTester; | 550 friend class PathOpsSegmentTester; |
| 551 }; | 551 }; |
| 552 | 552 |
| 553 #endif | 553 #endif |
| OLD | NEW |