| 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 SkBlurMask_DEFINED | 10 #ifndef SkBlurMask_DEFINED |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 kHigh_Quality //!< three pass box blur (similar to gaussian) | 29 kHigh_Quality //!< three pass box blur (similar to gaussian) |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 static bool BlurRect(SkMask *dst, const SkRect &src, | 32 static bool BlurRect(SkMask *dst, const SkRect &src, |
| 33 SkScalar radius, Style style, | 33 SkScalar radius, Style style, |
| 34 SkIPoint *margin = NULL, | 34 SkIPoint *margin = NULL, |
| 35 SkMask::CreateMode createMode=SkMask::kComputeBoundsAnd
RenderImage_CreateMode); | 35 SkMask::CreateMode createMode=SkMask::kComputeBoundsAnd
RenderImage_CreateMode); |
| 36 static bool Blur(SkMask* dst, const SkMask& src, | 36 static bool Blur(SkMask* dst, const SkMask& src, |
| 37 SkScalar radius, Style style, Quality quality, | 37 SkScalar radius, Style style, Quality quality, |
| 38 SkIPoint* margin = NULL); | 38 SkIPoint* margin = NULL); |
| 39 static bool BlurSeparable(SkMask* dst, const SkMask& src, | |
| 40 SkScalar radius, Style style, Quality quality, | |
| 41 SkIPoint* margin = NULL); | |
| 42 | |
| 43 | 39 |
| 44 // the "ground truth" blur does a gaussian convolution; it's slow | 40 // the "ground truth" blur does a gaussian convolution; it's slow |
| 45 // but useful for comparison purposes. | 41 // but useful for comparison purposes. |
| 46 | 42 |
| 47 static bool BlurGroundTruth(SkMask* dst, const SkMask& src, | 43 static bool BlurGroundTruth(SkMask* dst, const SkMask& src, |
| 48 SkScalar provided_radius, Style style, | 44 SkScalar provided_radius, Style style, |
| 49 SkIPoint* margin = NULL); | 45 SkIPoint* margin = NULL); |
| 50 | |
| 51 private: | |
| 52 static bool Blur(SkMask* dst, const SkMask& src, | |
| 53 SkScalar radius, Style style, Quality quality, | |
| 54 SkIPoint* margin, bool separable); | |
| 55 }; | 46 }; |
| 56 | 47 |
| 57 #endif | 48 #endif |
| OLD | NEW |