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) | |
133 | 132 |
134 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 133 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
135 /// Override for subclasses as appropriate. | 134 /// Override for subclasses as appropriate. |
136 virtual bool exposedInAndroidJavaAPI() const { return false; } | 135 virtual bool exposedInAndroidJavaAPI() const { return false; } |
137 #endif | 136 #endif |
138 | 137 |
139 protected: | 138 protected: |
140 SkPathEffect() {} | 139 SkPathEffect() {} |
141 | 140 |
142 private: | 141 private: |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 261 |
263 private: | 262 private: |
264 // illegal | 263 // illegal |
265 SkSumPathEffect(const SkSumPathEffect&); | 264 SkSumPathEffect(const SkSumPathEffect&); |
266 SkSumPathEffect& operator=(const SkSumPathEffect&); | 265 SkSumPathEffect& operator=(const SkSumPathEffect&); |
267 | 266 |
268 typedef SkPairPathEffect INHERITED; | 267 typedef SkPairPathEffect INHERITED; |
269 }; | 268 }; |
270 | 269 |
271 #endif | 270 #endif |
OLD | NEW |