| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, | 69 SkMatrixConvolutionImageFilter(const SkISize& kernelSize, |
| 70 const SkScalar* kernel, | 70 const SkScalar* kernel, |
| 71 SkScalar gain, | 71 SkScalar gain, |
| 72 SkScalar bias, | 72 SkScalar bias, |
| 73 const SkIPoint& kernelOffset, | 73 const SkIPoint& kernelOffset, |
| 74 TileMode tileMode, | 74 TileMode tileMode, |
| 75 bool convolveAlpha, | 75 bool convolveAlpha, |
| 76 SkImageFilter* input, | 76 SkImageFilter* input, |
| 77 const CropRect* cropRect, | 77 const CropRect* cropRect, |
| 78 uint32_t uniqueID); | 78 uint32_t uniqueID); |
| 79 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
| 80 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); |
| 81 #endif |
| 79 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 82 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 80 | 83 |
| 81 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 84 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 82 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 85 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
| 83 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const
SK_OVERRIDE; | 86 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const
SK_OVERRIDE; |
| 84 | 87 |
| 85 | 88 |
| 86 #if SK_SUPPORT_GPU | 89 #if SK_SUPPORT_GPU |
| 87 virtual bool asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const Sk
Matrix&, | 90 virtual bool asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const Sk
Matrix&, |
| 88 const SkIRect& bounds) const SK_OVERRIDE; | 91 const SkIRect& bounds) const SK_OVERRIDE; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 112 SkBitmap* result, | 115 SkBitmap* result, |
| 113 const SkIRect& rect, | 116 const SkIRect& rect, |
| 114 const SkIRect& bounds) const; | 117 const SkIRect& bounds) const; |
| 115 void filterBorderPixels(const SkBitmap& src, | 118 void filterBorderPixels(const SkBitmap& src, |
| 116 SkBitmap* result, | 119 SkBitmap* result, |
| 117 const SkIRect& rect, | 120 const SkIRect& rect, |
| 118 const SkIRect& bounds) const; | 121 const SkIRect& bounds) const; |
| 119 }; | 122 }; |
| 120 | 123 |
| 121 #endif | 124 #endif |
| OLD | NEW |