Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Side by Side Diff: include/core/SkPathRef.h

Issue 1491843006: add support for capped hairlines (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add comment Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkPath.h ('k') | src/core/SkDraw.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/core/SkPath.h ('k') | src/core/SkDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698