| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 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 SkMatrixConvolutionImageFilter_DEFINED | 8 #ifndef SkMatrixConvolutionImageFilter_DEFINED |
| 9 #define SkMatrixConvolutionImageFilter_DEFINED | 9 #define SkMatrixConvolutionImageFilter_DEFINED |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 protected: | 71 protected: |
| 72 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, | 72 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, |
| 73 const SkScalar* kernel, | 73 const SkScalar* kernel, |
| 74 SkScalar gain, | 74 SkScalar gain, |
| 75 SkScalar bias, | 75 SkScalar bias, |
| 76 const SkIPoint& kernelOffset, | 76 const SkIPoint& kernelOffset, |
| 77 TileMode tileMode, | 77 TileMode tileMode, |
| 78 bool convolveAlpha, | 78 bool convolveAlpha, |
| 79 SkImageFilter* input, | 79 SkImageFilter* input, |
| 80 const CropRect* cropRect); | 80 const CropRect* cropRect); |
| 81 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
| 81 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); | 82 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); |
| 83 #endif |
| 82 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 84 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 83 | 85 |
| 84 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 86 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 85 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 87 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
| 86 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const
SK_OVERRIDE; | 88 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const
SK_OVERRIDE; |
| 87 | 89 |
| 88 | 90 |
| 89 #if SK_SUPPORT_GPU | 91 #if SK_SUPPORT_GPU |
| 90 virtual bool asNewEffect(GrEffect** effect, | 92 virtual bool asNewEffect(GrEffect** effect, |
| 91 GrTexture*, | 93 GrTexture*, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 117 SkBitmap* result, | 119 SkBitmap* result, |
| 118 const SkIRect& rect, | 120 const SkIRect& rect, |
| 119 const SkIRect& bounds) const; | 121 const SkIRect& bounds) const; |
| 120 void filterBorderPixels(const SkBitmap& src, | 122 void filterBorderPixels(const SkBitmap& src, |
| 121 SkBitmap* result, | 123 SkBitmap* result, |
| 122 const SkIRect& rect, | 124 const SkIRect& rect, |
| 123 const SkIRect& bounds) const; | 125 const SkIRect& bounds) const; |
| 124 }; | 126 }; |
| 125 | 127 |
| 126 #endif | 128 #endif |
| OLD | NEW |