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 SkOpAngle_DEFINED | 7 #ifndef SkOpAngle_DEFINED |
8 #define SkOpAngle_DEFINED | 8 #define SkOpAngle_DEFINED |
9 | 9 |
10 #include "SkChunkAlloc.h" | 10 #include "SkChunkAlloc.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 int loopCount() const; | 43 int loopCount() const; |
44 void markStops(); | 44 void markStops(); |
45 bool merge(SkOpAngle* ); | 45 bool merge(SkOpAngle* ); |
46 | 46 |
47 SkOpAngle* next() const { | 47 SkOpAngle* next() const { |
48 return fNext; | 48 return fNext; |
49 } | 49 } |
50 | 50 |
51 SkOpAngle* previous() const; | 51 SkOpAngle* previous() const; |
52 | 52 |
| 53 int sectorEnd() const { |
| 54 return fSectorEnd; |
| 55 } |
| 56 |
| 57 int sectorStart() const { |
| 58 return fSectorStart; |
| 59 } |
| 60 |
53 void set(const SkOpSegment* segment, int start, int end); | 61 void set(const SkOpSegment* segment, int start, int end); |
54 | 62 |
55 void setLastMarked(SkOpSpan* marked) { | 63 void setLastMarked(SkOpSpan* marked) { |
56 fLastMarked = marked; | 64 fLastMarked = marked; |
57 } | 65 } |
58 | 66 |
59 SkOpSegment* segment() const { | 67 SkOpSegment* segment() const { |
60 return const_cast<SkOpSegment*>(fSegment); | 68 return const_cast<SkOpSegment*>(fSegment); |
61 } | 69 } |
62 | 70 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 void reset(); | 168 void reset(); |
161 private: | 169 private: |
162 void dump() const; // utility to be called by user from debugger | 170 void dump() const; // utility to be called by user from debugger |
163 SkChunkAlloc* fAngles; | 171 SkChunkAlloc* fAngles; |
164 #if DEBUG_ANGLE | 172 #if DEBUG_ANGLE |
165 int fCount; | 173 int fCount; |
166 #endif | 174 #endif |
167 }; | 175 }; |
168 | 176 |
169 #endif | 177 #endif |
OLD | NEW |