| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef SkPathRef_DEFINED | 9 #ifndef SkPathRef_DEFINED |
| 10 #define SkPathRef_DEFINED | 10 #define SkPathRef_DEFINED |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void setPathRef(const SkPathRef&); | 117 void setPathRef(const SkPathRef&); |
| 118 | 118 |
| 119 /** Return the next verb in this iteration of the path. When all | 119 /** Return the next verb in this iteration of the path. When all |
| 120 segments have been visited, return kDone_Verb. | 120 segments have been visited, return kDone_Verb. |
| 121 | 121 |
| 122 @param pts The points representing the current verb and/or segment | 122 @param pts The points representing the current verb and/or segment |
| 123 This must not be NULL. | 123 This must not be NULL. |
| 124 @return The verb for the current segment | 124 @return The verb for the current segment |
| 125 */ | 125 */ |
| 126 uint8_t next(SkPoint pts[4]); | 126 uint8_t next(SkPoint pts[4]); |
| 127 uint8_t peek() const; |
| 127 | 128 |
| 128 SkScalar conicWeight() const { return *fConicWeights; } | 129 SkScalar conicWeight() const { return *fConicWeights; } |
| 129 | 130 |
| 130 private: | 131 private: |
| 131 const SkPoint* fPts; | 132 const SkPoint* fPts; |
| 132 const uint8_t* fVerbs; | 133 const uint8_t* fVerbs; |
| 133 const uint8_t* fVerbStop; | 134 const uint8_t* fVerbStop; |
| 134 const SkScalar* fConicWeights; | 135 const SkScalar* fConicWeights; |
| 135 }; | 136 }; |
| 136 | 137 |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 SkBool8 fIsOval; | 497 SkBool8 fIsOval; |
| 497 SkBool8 fIsRRect; | 498 SkBool8 fIsRRect; |
| 498 uint8_t fSegmentMask; | 499 uint8_t fSegmentMask; |
| 499 | 500 |
| 500 friend class PathRefTest_Private; | 501 friend class PathRefTest_Private; |
| 501 friend class ForceIsRRect_Private; // unit test isRRect | 502 friend class ForceIsRRect_Private; // unit test isRRect |
| 502 typedef SkRefCnt INHERITED; | 503 typedef SkRefCnt INHERITED; |
| 503 }; | 504 }; |
| 504 | 505 |
| 505 #endif | 506 #endif |
| OLD | NEW |