OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 | 7 |
8 #ifndef GrStyle_DEFINED | 8 #ifndef GrStyle_DEFINED |
9 #define GrStyle_DEFINED | 9 #define GrStyle_DEFINED |
10 | 10 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 } | 194 } |
195 void reset() { | 195 void reset() { |
196 fType = SkPathEffect::kNone_DashType; | 196 fType = SkPathEffect::kNone_DashType; |
197 fIntervals.reset(0); | 197 fIntervals.reset(0); |
198 } | 198 } |
199 SkPathEffect::DashType fType; | 199 SkPathEffect::DashType fType; |
200 SkScalar fPhase; | 200 SkScalar fPhase; |
201 SkAutoSTArray<4, SkScalar> fIntervals; | 201 SkAutoSTArray<4, SkScalar> fIntervals; |
202 }; | 202 }; |
203 | 203 |
| 204 bool applyPathEffect(SkPath* dst, SkStrokeRec* strokeRec, const SkPath& src)
const; |
| 205 |
204 SkStrokeRec fStrokeRec; | 206 SkStrokeRec fStrokeRec; |
205 sk_sp<SkPathEffect> fPathEffect; | 207 sk_sp<SkPathEffect> fPathEffect; |
206 DashInfo fDashInfo; | 208 DashInfo fDashInfo; |
207 }; | 209 }; |
208 | 210 |
209 #endif | 211 #endif |
OLD | NEW |