| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 */ | 54 */ |
| 55 static SkMatrixConvolutionImageFilter* Create(const SkISize& kernelSize, | 55 static SkMatrixConvolutionImageFilter* Create(const SkISize& kernelSize, |
| 56 const SkScalar* kernel, | 56 const SkScalar* kernel, |
| 57 SkScalar gain, | 57 SkScalar gain, |
| 58 SkScalar bias, | 58 SkScalar bias, |
| 59 const SkIPoint& kernelOffset, | 59 const SkIPoint& kernelOffset, |
| 60 TileMode tileMode, | 60 TileMode tileMode, |
| 61 bool convolveAlpha, | 61 bool convolveAlpha, |
| 62 SkImageFilter* input = NULL, | 62 SkImageFilter* input = NULL, |
| 63 const CropRect* cropRect = NUL
L, | 63 const CropRect* cropRect = NUL
L, |
| 64 uint32_t uniqueID = 0) { | 64 uint32_t uniqueID = 0); |
| 65 return SkNEW_ARGS(SkMatrixConvolutionImageFilter, (kernelSize, kernel, g
ain, bias, | |
| 66 kernelOffset, tileMod
e, convolveAlpha, | |
| 67 input, cropRect, uniq
ueID)); | |
| 68 } | |
| 69 | 65 |
| 70 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage
Filter) | 66 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage
Filter) |
| 71 | 67 |
| 72 protected: | 68 protected: |
| 73 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, | 69 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, |
| 74 const SkScalar* kernel, | 70 const SkScalar* kernel, |
| 75 SkScalar gain, | 71 SkScalar gain, |
| 76 SkScalar bias, | 72 SkScalar bias, |
| 77 const SkIPoint& kernelOffset, | 73 const SkIPoint& kernelOffset, |
| 78 TileMode tileMode, | 74 TileMode tileMode, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 SkBitmap* result, | 115 SkBitmap* result, |
| 120 const SkIRect& rect, | 116 const SkIRect& rect, |
| 121 const SkIRect& bounds) const; | 117 const SkIRect& bounds) const; |
| 122 void filterBorderPixels(const SkBitmap& src, | 118 void filterBorderPixels(const SkBitmap& src, |
| 123 SkBitmap* result, | 119 SkBitmap* result, |
| 124 const SkIRect& rect, | 120 const SkIRect& rect, |
| 125 const SkIRect& bounds) const; | 121 const SkIRect& bounds) const; |
| 126 }; | 122 }; |
| 127 | 123 |
| 128 #endif | 124 #endif |
| OLD | NEW |