| 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 SkMaskFilter_DEFINED | 10 #ifndef SkMaskFilter_DEFINED |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |