| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 virtual bool filterMaskGPU(GrTexture* src, | 53 virtual bool filterMaskGPU(GrTexture* src, |
| 54 const SkMatrix& ctm, | 54 const SkMatrix& ctm, |
| 55 const SkRect& maskRect, | 55 const SkRect& maskRect, |
| 56 GrTexture** result, | 56 GrTexture** result, |
| 57 bool canOverwriteSrc) const SK_OVERRIDE; | 57 bool canOverwriteSrc) const SK_OVERRIDE; |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; | 60 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; |
| 61 | 61 |
| 62 SkDEVCODE(virtual void toString(SkString* str) const SK_OVERRIDE;) | 62 SK_TO_STRING_OVERRIDE() |
| 63 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurMaskFilterImpl) | 63 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurMaskFilterImpl) |
| 64 | 64 |
| 65 protected: | 65 protected: |
| 66 virtual FilterReturn filterRectsToNine(const SkRect[], int count, const SkMa
trix&, | 66 virtual FilterReturn filterRectsToNine(const SkRect[], int count, const SkMa
trix&, |
| 67 const SkIRect& clipBounds, | 67 const SkIRect& clipBounds, |
| 68 NinePatch*) const SK_OVERRIDE; | 68 NinePatch*) const SK_OVERRIDE; |
| 69 | 69 |
| 70 virtual FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, | 70 virtual FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, |
| 71 const SkIRect& clipBounds, | 71 const SkIRect& clipBounds, |
| 72 NinePatch*) const SK_OVERRIDE; | 72 NinePatch*) const SK_OVERRIDE; |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 } | 908 } |
| 909 context->drawRect(paint, clipRect); | 909 context->drawRect(paint, clipRect); |
| 910 } | 910 } |
| 911 | 911 |
| 912 return true; | 912 return true; |
| 913 } | 913 } |
| 914 | 914 |
| 915 #endif // SK_SUPPORT_GPU | 915 #endif // SK_SUPPORT_GPU |
| 916 | 916 |
| 917 | 917 |
| 918 #ifdef SK_DEVELOPER | 918 #ifndef SK_IGNORE_TO_STRING |
| 919 void SkBlurMaskFilterImpl::toString(SkString* str) const { | 919 void SkBlurMaskFilterImpl::toString(SkString* str) const { |
| 920 str->append("SkBlurMaskFilterImpl: ("); | 920 str->append("SkBlurMaskFilterImpl: ("); |
| 921 | 921 |
| 922 str->append("sigma: "); | 922 str->append("sigma: "); |
| 923 str->appendScalar(fSigma); | 923 str->appendScalar(fSigma); |
| 924 str->append(" "); | 924 str->append(" "); |
| 925 | 925 |
| 926 static const char* gStyleName[SkBlurMaskFilter::kBlurStyleCount] = { | 926 static const char* gStyleName[SkBlurMaskFilter::kBlurStyleCount] = { |
| 927 "normal", "solid", "outer", "inner" | 927 "normal", "solid", "outer", "inner" |
| 928 }; | 928 }; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 940 } else { | 940 } else { |
| 941 str->append("None"); | 941 str->append("None"); |
| 942 } | 942 } |
| 943 str->append("))"); | 943 str->append("))"); |
| 944 } | 944 } |
| 945 #endif | 945 #endif |
| 946 | 946 |
| 947 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) | 947 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) |
| 948 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) | 948 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) |
| 949 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 949 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
| OLD | NEW |