| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 private: | 90 private: |
| 91 SkISize fKernelSize; | 91 SkISize fKernelSize; |
| 92 SkScalar* fKernel; | 92 SkScalar* fKernel; |
| 93 SkScalar fGain; | 93 SkScalar fGain; |
| 94 SkScalar fBias; | 94 SkScalar fBias; |
| 95 SkIPoint fKernelOffset; | 95 SkIPoint fKernelOffset; |
| 96 TileMode fTileMode; | 96 TileMode fTileMode; |
| 97 bool fConvolveAlpha; | 97 bool fConvolveAlpha; |
| 98 typedef SkImageFilter INHERITED; | 98 typedef SkImageFilter INHERITED; |
| 99 | 99 |
| 100 template <class PixelFetcher, bool convolveAlpha> | |
| 101 void filterPixels(const SkBitmap& src, | |
| 102 SkBitmap* result, | |
| 103 const SkIRect& rect, | |
| 104 const SkIRect& bounds) const; | |
| 105 template <class PixelFetcher> | 100 template <class PixelFetcher> |
| 106 void filterPixels(const SkBitmap& src, | 101 void filterPixels(const SkBitmap& src, |
| 107 SkBitmap* result, | 102 SkBitmap* result, |
| 108 const SkIRect& rect, | 103 const SkIRect& rect, |
| 109 const SkIRect& bounds) const; | 104 const SkIRect& bounds) const; |
| 110 void filterInteriorPixels(const SkBitmap& src, | 105 void filterInteriorPixels(const SkBitmap& src, |
| 111 SkBitmap* result, | 106 SkBitmap* result, |
| 112 const SkIRect& rect, | 107 const SkIRect& rect, |
| 113 const SkIRect& bounds) const; | 108 const SkIRect& bounds) const; |
| 114 void filterBorderPixels(const SkBitmap& src, | 109 void filterBorderPixels(const SkBitmap& src, |
| 115 SkBitmap* result, | 110 SkBitmap* result, |
| 116 const SkIRect& rect, | 111 const SkIRect& rect, |
| 117 const SkIRect& bounds) const; | 112 const SkIRect& bounds) const; |
| 118 }; | 113 }; |
| 119 | 114 |
| 120 #endif | 115 #endif |
| OLD | NEW |