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 #include "SkBlurMaskFilter.h" | 9 #include "SkBlurMaskFilter.h" |
10 #include "SkBlurMask.h" | 10 #include "SkBlurMask.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "GrContext.h" | 21 #include "GrContext.h" |
22 #include "GrTexture.h" | 22 #include "GrTexture.h" |
23 #include "GrEffect.h" | 23 #include "GrEffect.h" |
24 #include "gl/GrGLEffect.h" | 24 #include "gl/GrGLEffect.h" |
25 #include "effects/GrSimpleTextureEffect.h" | 25 #include "effects/GrSimpleTextureEffect.h" |
26 #include "GrTBackendEffectFactory.h" | 26 #include "GrTBackendEffectFactory.h" |
27 #include "SkGrPixelRef.h" | 27 #include "SkGrPixelRef.h" |
28 #include "SkDraw.h" | 28 #include "SkDraw.h" |
29 #endif | 29 #endif |
30 | 30 |
| 31 SkScalar SkBlurMaskFilter::ConvertRadiusToSigma(SkScalar radius) { |
| 32 return SkBlurMask::ConvertRadiusToSigma(radius); |
| 33 } |
| 34 |
31 class SkBlurMaskFilterImpl : public SkMaskFilter { | 35 class SkBlurMaskFilterImpl : public SkMaskFilter { |
32 public: | 36 public: |
33 SkBlurMaskFilterImpl(SkScalar sigma, SkBlurStyle, uint32_t flags); | 37 SkBlurMaskFilterImpl(SkScalar sigma, SkBlurStyle, uint32_t flags); |
34 | 38 |
35 // overrides from SkMaskFilter | 39 // overrides from SkMaskFilter |
36 virtual SkMask::Format getFormat() const SK_OVERRIDE; | 40 virtual SkMask::Format getFormat() const SK_OVERRIDE; |
37 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&, | 41 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&, |
38 SkIPoint* margin) const SK_OVERRIDE; | 42 SkIPoint* margin) const SK_OVERRIDE; |
39 | 43 |
40 #if SK_SUPPORT_GPU | 44 #if SK_SUPPORT_GPU |
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1221 } else { | 1225 } else { |
1222 str->append("None"); | 1226 str->append("None"); |
1223 } | 1227 } |
1224 str->append("))"); | 1228 str->append("))"); |
1225 } | 1229 } |
1226 #endif | 1230 #endif |
1227 | 1231 |
1228 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) | 1232 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) |
1229 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) | 1233 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) |
1230 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1234 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |