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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 kernelOffset, tileMod
e, convolveAlpha, | 64 kernelOffset, tileMod
e, convolveAlpha, |
65 input, cropRect)); | 65 input, cropRect)); |
66 } | 66 } |
67 | 67 |
68 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage
Filter) | 68 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixConvolutionImage
Filter) |
69 | 69 |
70 protected: | 70 protected: |
71 SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); | 71 SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); |
72 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 72 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
73 | 73 |
74 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, | 74 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
75 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 75 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
76 | 76 |
77 #if SK_SUPPORT_GPU | 77 #if SK_SUPPORT_GPU |
78 virtual bool asNewEffect(GrEffectRef** effect, | 78 virtual bool asNewEffect(GrEffectRef** effect, |
79 GrTexture*, | 79 GrTexture*, |
80 const SkMatrix& matrix, | 80 const SkMatrix& ctm, |
81 const SkIRect& bounds) const SK_OVERRIDE; | 81 const SkIRect& bounds) const SK_OVERRIDE; |
82 #endif | 82 #endif |
83 | 83 |
84 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS | 84 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS |
85 public: | 85 public: |
86 #endif | 86 #endif |
87 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, | 87 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, |
88 const SkScalar* kernel, | 88 const SkScalar* kernel, |
89 SkScalar gain, | 89 SkScalar gain, |
90 SkScalar bias, | 90 SkScalar bias, |
(...skipping 27 matching lines...) Expand all Loading... |
118 SkBitmap* result, | 118 SkBitmap* result, |
119 const SkIRect& rect, | 119 const SkIRect& rect, |
120 const SkIRect& bounds) const; | 120 const SkIRect& bounds) const; |
121 void filterBorderPixels(const SkBitmap& src, | 121 void filterBorderPixels(const SkBitmap& src, |
122 SkBitmap* result, | 122 SkBitmap* result, |
123 const SkIRect& rect, | 123 const SkIRect& rect, |
124 const SkIRect& bounds) const; | 124 const SkIRect& bounds) const; |
125 }; | 125 }; |
126 | 126 |
127 #endif | 127 #endif |
OLD | NEW |