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 |
11 #include "SkImageFilter.h" | 11 #include "SkImageFilter.h" |
12 #include "SkScalar.h" | 12 #include "SkScalar.h" |
13 #include "SkSize.h" | 13 #include "SkSize.h" |
14 #include "SkPoint.h" | 14 #include "SkPoint.h" |
15 | 15 |
| 16 class SkBitmap; |
| 17 |
16 /*! \class SkMatrixConvolutionImageFilter | 18 /*! \class SkMatrixConvolutionImageFilter |
17 Matrix convolution image filter. This filter applies an NxM image | 19 Matrix convolution image filter. This filter applies an NxM image |
18 processing kernel to a given input image. This can be used to produce | 20 processing kernel to a given input image. This can be used to produce |
19 effects such as sharpening, blurring, edge detection, etc. | 21 effects such as sharpening, blurring, edge detection, etc. |
20 */ | 22 */ |
21 | 23 |
22 class SK_API SkMatrixConvolutionImageFilter : public SkImageFilter { | 24 class SK_API SkMatrixConvolutionImageFilter : public SkImageFilter { |
23 public: | 25 public: |
24 /*! \enum TileMode */ | 26 /*! \enum TileMode */ |
25 enum TileMode { | 27 enum TileMode { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const SkIRect& bounds) const; | 124 const SkIRect& bounds) const; |
123 void filterBorderPixels(const SkBitmap& src, | 125 void filterBorderPixels(const SkBitmap& src, |
124 SkBitmap* result, | 126 SkBitmap* result, |
125 const SkIRect& rect, | 127 const SkIRect& rect, |
126 const SkIRect& bounds) const; | 128 const SkIRect& bounds) const; |
127 | 129 |
128 typedef SkImageFilter INHERITED; | 130 typedef SkImageFilter INHERITED; |
129 }; | 131 }; |
130 | 132 |
131 #endif | 133 #endif |
OLD | NEW |