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 SkIntersectionHelper_DEFINED |
| 8 #define SkIntersectionHelper_DEFINED |
| 9 |
7 #include "SkOpContour.h" | 10 #include "SkOpContour.h" |
8 #include "SkOpSegment.h" | 11 #include "SkOpSegment.h" |
9 #include "SkPath.h" | 12 #include "SkPath.h" |
10 | 13 |
11 #ifdef SK_DEBUG | 14 #ifdef SK_DEBUG |
12 #include "SkPathOpsPoint.h" | 15 #include "SkPathOpsPoint.h" |
13 #endif | 16 #endif |
14 | 17 |
15 class SkIntersectionHelper { | 18 class SkIntersectionHelper { |
16 public: | 19 public: |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 return bounds().fTop; | 102 return bounds().fTop; |
100 } | 103 } |
101 | 104 |
102 bool yFlipped() const { | 105 bool yFlipped() const { |
103 return y() != pts()[0].fY; | 106 return y() != pts()[0].fY; |
104 } | 107 } |
105 | 108 |
106 private: | 109 private: |
107 SkOpSegment* fSegment; | 110 SkOpSegment* fSegment; |
108 }; | 111 }; |
| 112 |
| 113 #endif |
OLD | NEW |