Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: include/core/SkPathEffect.h

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 SkScalar fPhase; //!< Offset into the dashed interval pat tern 128 SkScalar fPhase; //!< Offset into the dashed interval pat tern
129 // mod the sum of all intervals 129 // mod the sum of all intervals
130 }; 130 };
131 131
132 virtual DashType asADash(DashInfo* info) const; 132 virtual DashType asADash(DashInfo* info) const;
133 133
134 SK_DEFINE_FLATTENABLE_TYPE(SkPathEffect) 134 SK_DEFINE_FLATTENABLE_TYPE(SkPathEffect)
135 135
136 protected: 136 protected:
137 SkPathEffect() {} 137 SkPathEffect() {}
138 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
138 SkPathEffect(SkReadBuffer& buffer) : INHERITED(buffer) {} 139 SkPathEffect(SkReadBuffer& buffer) : INHERITED(buffer) {}
140 #endif
139 141
140 private: 142 private:
141 // illegal 143 // illegal
142 SkPathEffect(const SkPathEffect&); 144 SkPathEffect(const SkPathEffect&);
143 SkPathEffect& operator=(const SkPathEffect&); 145 SkPathEffect& operator=(const SkPathEffect&);
144 146
145 typedef SkFlattenable INHERITED; 147 typedef SkFlattenable INHERITED;
146 }; 148 };
147 149
148 /** \class SkPairPathEffect 150 /** \class SkPairPathEffect
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 231
230 private: 232 private:
231 // illegal 233 // illegal
232 SkSumPathEffect(const SkSumPathEffect&); 234 SkSumPathEffect(const SkSumPathEffect&);
233 SkSumPathEffect& operator=(const SkSumPathEffect&); 235 SkSumPathEffect& operator=(const SkSumPathEffect&);
234 236
235 typedef SkPairPathEffect INHERITED; 237 typedef SkPairPathEffect INHERITED;
236 }; 238 };
237 239
238 #endif 240 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698