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

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

Issue 1853383002: Revert of Delete SkFlattenable::Type (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « include/core/SkMaskFilter.h ('k') | include/core/SkRasterizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/core/SkMaskFilter.h ('k') | include/core/SkRasterizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698