OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrStrokeInfo_DEFINED | 8 #ifndef GrStrokeInfo_DEFINED |
9 #define GrStrokeInfo_DEFINED | 9 #define GrStrokeInfo_DEFINED |
10 | 10 |
| 11 #include "SkPathEffect.h" |
11 #include "SkStrokeRec.h" | 12 #include "SkStrokeRec.h" |
12 #include "SkPathEffect.h" | 13 #include "SkTemplates.h" |
13 | 14 |
14 class GrUniqueKey; | 15 class GrUniqueKey; |
15 | 16 |
16 /* | 17 /* |
17 * GrStrokeInfo encapsulates all the pertinent infomation regarding the stroke.
The SkStrokeRec | 18 * GrStrokeInfo encapsulates all the pertinent infomation regarding the stroke.
The SkStrokeRec |
18 * which holds information on fill style, width, miter, cap, and join. It also h
olds information | 19 * which holds information on fill style, width, miter, cap, and join. It also h
olds information |
19 * about the dash like intervals, count, and phase. | 20 * about the dash like intervals, count, and phase. |
20 */ | 21 */ |
21 class GrStrokeInfo : public SkStrokeRec { | 22 class GrStrokeInfo : public SkStrokeRec { |
22 public: | 23 public: |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 this->setDashInfo(pe); | 177 this->setDashInfo(pe); |
177 } | 178 } |
178 | 179 |
179 SkPathEffect::DashType fDashType; | 180 SkPathEffect::DashType fDashType; |
180 SkScalar fDashPhase; | 181 SkScalar fDashPhase; |
181 SkAutoSTArray<2, SkScalar> fIntervals; | 182 SkAutoSTArray<2, SkScalar> fIntervals; |
182 typedef SkStrokeRec INHERITED; | 183 typedef SkStrokeRec INHERITED; |
183 }; | 184 }; |
184 | 185 |
185 #endif | 186 #endif |
OLD | NEW |