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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 }; | 99 }; |
100 | 100 |
101 /** | 101 /** |
102 * Does applying this path effect to 'src' yield a set of points? If so, | 102 * Does applying this path effect to 'src' yield a set of points? If so, |
103 * optionally return the points in 'results'. | 103 * optionally return the points in 'results'. |
104 */ | 104 */ |
105 virtual bool asPoints(PointData* results, const SkPath& src, | 105 virtual bool asPoints(PointData* results, const SkPath& src, |
106 const SkStrokeRec&, const SkMatrix&, | 106 const SkStrokeRec&, const SkMatrix&, |
107 const SkRect* cullR) const; | 107 const SkRect* cullR) const; |
108 | 108 |
| 109 SK_DEFINE_FLATTENABLE_EFFECT_TYPE(PathEffect) |
| 110 |
109 protected: | 111 protected: |
110 SkPathEffect(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} | 112 SkPathEffect(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} |
111 | 113 |
112 private: | 114 private: |
113 // illegal | 115 // illegal |
114 SkPathEffect(const SkPathEffect&); | 116 SkPathEffect(const SkPathEffect&); |
115 SkPathEffect& operator=(const SkPathEffect&); | 117 SkPathEffect& operator=(const SkPathEffect&); |
116 | 118 |
117 typedef SkFlattenable INHERITED; | 119 typedef SkFlattenable INHERITED; |
118 }; | 120 }; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 197 |
196 private: | 198 private: |
197 // illegal | 199 // illegal |
198 SkSumPathEffect(const SkSumPathEffect&); | 200 SkSumPathEffect(const SkSumPathEffect&); |
199 SkSumPathEffect& operator=(const SkSumPathEffect&); | 201 SkSumPathEffect& operator=(const SkSumPathEffect&); |
200 | 202 |
201 typedef SkPairPathEffect INHERITED; | 203 typedef SkPairPathEffect INHERITED; |
202 }; | 204 }; |
203 | 205 |
204 #endif | 206 #endif |
OLD | NEW |