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

Side by Side Diff: include/core/SkMaskFilter.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/SkImageFilter.h ('k') | include/core/SkPathEffect.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 SkMaskFilter_DEFINED 10 #ifndef SkMaskFilter_DEFINED
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 SkBlurQuality fQuality; 164 SkBlurQuality fQuality;
165 }; 165 };
166 /** 166 /**
167 * If this filter can be represented by a BlurRec, return true and (if not null) fill in the 167 * If this filter can be represented by a BlurRec, return true and (if not null) fill in the
168 * provided BlurRec parameter. If this effect cannot be represented as a Bl urRec, return false 168 * provided BlurRec parameter. If this effect cannot be represented as a Bl urRec, return false
169 * and ignore the BlurRec parameter. 169 * and ignore the BlurRec parameter.
170 */ 170 */
171 virtual bool asABlur(BlurRec*) const; 171 virtual bool asABlur(BlurRec*) const;
172 172
173 SK_TO_STRING_PUREVIRT() 173 SK_TO_STRING_PUREVIRT()
174 SK_DEFINE_FLATTENABLE_TYPE(SkMaskFilter)
174 175
175 protected: 176 protected:
176 SkMaskFilter() {} 177 SkMaskFilter() {}
177 178
178 enum FilterReturn { 179 enum FilterReturn {
179 kFalse_FilterReturn, 180 kFalse_FilterReturn,
180 kTrue_FilterReturn, 181 kTrue_FilterReturn,
181 kUnimplemented_FilterReturn 182 kUnimplemented_FilterReturn
182 }; 183 };
183 184
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 mask and then call filterMask(). If this returns true, the specified blitte r will be called 234 mask and then call filterMask(). If this returns true, the specified blitte r will be called
234 to render that mask. Returns false if filterMask() returned false. 235 to render that mask. Returns false if filterMask() returned false.
235 */ 236 */
236 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&, 237 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&,
237 SkBlitter*, SkPaint::Style style) const; 238 SkBlitter*, SkPaint::Style style) const;
238 239
239 typedef SkFlattenable INHERITED; 240 typedef SkFlattenable INHERITED;
240 }; 241 };
241 242
242 #endif 243 #endif
OLDNEW
« no previous file with comments | « include/core/SkImageFilter.h ('k') | include/core/SkPathEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698