| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The Android Open Source Project | 2 * Copyright 2011 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkBlurImageFilter_DEFINED | 8 #ifndef SkBlurImageFilter_DEFINED |
| 9 #define SkBlurImageFilter_DEFINED | 9 #define SkBlurImageFilter_DEFINED |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; | 23 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; |
| 24 | 24 |
| 25 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter) | 25 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter) |
| 26 | 26 |
| 27 protected: | 27 protected: |
| 28 SkBlurImageFilter(SkScalar sigmaX, | 28 SkBlurImageFilter(SkScalar sigmaX, |
| 29 SkScalar sigmaY, | 29 SkScalar sigmaY, |
| 30 SkImageFilter* input, | 30 SkImageFilter* input, |
| 31 const CropRect* cropRect, | 31 const CropRect* cropRect, |
| 32 uint32_t uniqueID); | 32 uint32_t uniqueID); |
| 33 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
| 34 explicit SkBlurImageFilter(SkReadBuffer& buffer); |
| 35 #endif |
| 33 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 36 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 34 | 37 |
| 35 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 38 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 36 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; | 39 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; |
| 37 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 40 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
| 38 SkIRect* dst) const SK_OVERRIDE; | 41 SkIRect* dst) const SK_OVERRIDE; |
| 39 | 42 |
| 40 bool canFilterImageGPU() const SK_OVERRIDE { return true; } | 43 bool canFilterImageGPU() const SK_OVERRIDE { return true; } |
| 41 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context
& ctx, | 44 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context
& ctx, |
| 42 SkBitmap* result, SkIPoint* offset) const SK_OVE
RRIDE; | 45 SkBitmap* result, SkIPoint* offset) const SK_OVE
RRIDE; |
| 43 | 46 |
| 44 private: | 47 private: |
| 45 SkSize fSigma; | 48 SkSize fSigma; |
| 46 typedef SkImageFilter INHERITED; | 49 typedef SkImageFilter INHERITED; |
| 47 }; | 50 }; |
| 48 | 51 |
| 49 #endif | 52 #endif |
| OLD | NEW |