| 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 | |
| 61 void set(const SkOpSegment* segment, int start, int end); | 53 void set(const SkOpSegment* segment, int start, int end); |
| 62 | 54 |
| 63 void setLastMarked(SkOpSpan* marked) { | 55 void setLastMarked(SkOpSpan* marked) { |
| 64 fLastMarked = marked; | 56 fLastMarked = marked; |
| 65 } | 57 } |
| 66 | 58 |
| 67 SkOpSegment* segment() const { | 59 SkOpSegment* segment() const { |
| 68 return const_cast<SkOpSegment*>(fSegment); | 60 return const_cast<SkOpSegment*>(fSegment); |
| 69 } | 61 } |
| 70 | 62 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 void reset(); | 160 void reset(); |
| 169 private: | 161 private: |
| 170 void dump() const; // utility to be called by user from debugger | 162 void dump() const; // utility to be called by user from debugger |
| 171 SkChunkAlloc* fAngles; | 163 SkChunkAlloc* fAngles; |
| 172 #if DEBUG_ANGLE | 164 #if DEBUG_ANGLE |
| 173 int fCount; | 165 int fCount; |
| 174 #endif | 166 #endif |
| 175 }; | 167 }; |
| 176 | 168 |
| 177 #endif | 169 #endif |
| OLD | NEW |