OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
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 | 9 |
10 #ifndef SkPathEffect_DEFINED | 10 #ifndef SkPathEffect_DEFINED |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 SkScalar* fIntervals; //!< Length of on/off intervals for dash
ed lines | 122 SkScalar* fIntervals; //!< Length of on/off intervals for dash
ed lines |
123 // Even values represent ons, and odds
offs | 123 // Even values represent ons, and odds
offs |
124 int32_t fCount; //!< Number of intervals in the dash. Sh
ould be even number | 124 int32_t fCount; //!< Number of intervals in the dash. Sh
ould be even number |
125 SkScalar fPhase; //!< Offset into the dashed interval pat
tern | 125 SkScalar fPhase; //!< Offset into the dashed interval pat
tern |
126 // mod the sum of all intervals | 126 // mod the sum of all intervals |
127 }; | 127 }; |
128 | 128 |
129 virtual DashType asADash(DashInfo* info) const; | 129 virtual DashType asADash(DashInfo* info) const; |
130 | 130 |
131 SK_TO_STRING_PUREVIRT() | 131 SK_TO_STRING_PUREVIRT() |
| 132 SK_DEFINE_FLATTENABLE_TYPE(SkPathEffect) |
132 | 133 |
133 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 134 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
134 /// Override for subclasses as appropriate. | 135 /// Override for subclasses as appropriate. |
135 virtual bool exposedInAndroidJavaAPI() const { return false; } | 136 virtual bool exposedInAndroidJavaAPI() const { return false; } |
136 #endif | 137 #endif |
137 | 138 |
138 protected: | 139 protected: |
139 SkPathEffect() {} | 140 SkPathEffect() {} |
140 | 141 |
141 private: | 142 private: |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 262 |
262 private: | 263 private: |
263 // illegal | 264 // illegal |
264 SkSumPathEffect(const SkSumPathEffect&); | 265 SkSumPathEffect(const SkSumPathEffect&); |
265 SkSumPathEffect& operator=(const SkSumPathEffect&); | 266 SkSumPathEffect& operator=(const SkSumPathEffect&); |
266 | 267 |
267 typedef SkPairPathEffect INHERITED; | 268 typedef SkPairPathEffect INHERITED; |
268 }; | 269 }; |
269 | 270 |
270 #endif | 271 #endif |
OLD | NEW |