| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 * provided BlurRec parameter. If this effect cannot be represented as a Bl
urRec, return false | 146 * provided BlurRec parameter. If this effect cannot be represented as a Bl
urRec, return false |
| 147 * and ignore the BlurRec parameter. | 147 * and ignore the BlurRec parameter. |
| 148 */ | 148 */ |
| 149 virtual bool asABlur(BlurRec*) const; | 149 virtual bool asABlur(BlurRec*) const; |
| 150 | 150 |
| 151 SK_TO_STRING_PUREVIRT() | 151 SK_TO_STRING_PUREVIRT() |
| 152 SK_DEFINE_FLATTENABLE_TYPE(SkMaskFilter) | 152 SK_DEFINE_FLATTENABLE_TYPE(SkMaskFilter) |
| 153 | 153 |
| 154 protected: | 154 protected: |
| 155 SkMaskFilter() {} | 155 SkMaskFilter() {} |
| 156 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
| 157 // empty for now, but lets get our subclass to remember to init us for the f
uture |
| 158 SkMaskFilter(SkReadBuffer& buffer) : INHERITED(buffer) {} |
| 159 #endif |
| 156 | 160 |
| 157 enum FilterReturn { | 161 enum FilterReturn { |
| 158 kFalse_FilterReturn, | 162 kFalse_FilterReturn, |
| 159 kTrue_FilterReturn, | 163 kTrue_FilterReturn, |
| 160 kUnimplemented_FilterReturn | 164 kUnimplemented_FilterReturn |
| 161 }; | 165 }; |
| 162 | 166 |
| 163 struct NinePatch { | 167 struct NinePatch { |
| 164 SkMask fMask; // fBounds must have [0,0] in its top-left | 168 SkMask fMask; // fBounds must have [0,0] in its top-left |
| 165 SkIRect fOuterRect; // width/height must be >= fMask.fBounds' | 169 SkIRect fOuterRect; // width/height must be >= fMask.fBounds' |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 mask and then call filterMask(). If this returns true, the specified blitte
r will be called | 211 mask and then call filterMask(). If this returns true, the specified blitte
r will be called |
| 208 to render that mask. Returns false if filterMask() returned false. | 212 to render that mask. Returns false if filterMask() returned false. |
| 209 */ | 213 */ |
| 210 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste
rClip&, | 214 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste
rClip&, |
| 211 SkBlitter*, SkPaint::Style style) const; | 215 SkBlitter*, SkPaint::Style style) const; |
| 212 | 216 |
| 213 typedef SkFlattenable INHERITED; | 217 typedef SkFlattenable INHERITED; |
| 214 }; | 218 }; |
| 215 | 219 |
| 216 #endif | 220 #endif |
| OLD | NEW |