| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); | 84 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); |
| 85 #endif | 85 #endif |
| 86 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 86 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 87 | 87 |
| 88 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 88 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 89 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 89 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
| 90 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const
SK_OVERRIDE; | 90 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const
SK_OVERRIDE; |
| 91 | 91 |
| 92 | 92 |
| 93 #if SK_SUPPORT_GPU | 93 #if SK_SUPPORT_GPU |
| 94 virtual bool asNewEffect(GrEffect** effect, | 94 virtual bool asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const Sk
Matrix&, |
| 95 GrTexture*, | 95 const SkIRect& bounds) const SK_OVERRIDE; |
| 96 const SkMatrix& ctm, | |
| 97 const SkIRect& bounds) const SK_OVERRIDE; | |
| 98 #endif | 96 #endif |
| 99 | 97 |
| 100 private: | 98 private: |
| 101 SkISize fKernelSize; | 99 SkISize fKernelSize; |
| 102 SkScalar* fKernel; | 100 SkScalar* fKernel; |
| 103 SkScalar fGain; | 101 SkScalar fGain; |
| 104 SkScalar fBias; | 102 SkScalar fBias; |
| 105 SkIPoint fKernelOffset; | 103 SkIPoint fKernelOffset; |
| 106 TileMode fTileMode; | 104 TileMode fTileMode; |
| 107 bool fConvolveAlpha; | 105 bool fConvolveAlpha; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 121 SkBitmap* result, | 119 SkBitmap* result, |
| 122 const SkIRect& rect, | 120 const SkIRect& rect, |
| 123 const SkIRect& bounds) const; | 121 const SkIRect& bounds) const; |
| 124 void filterBorderPixels(const SkBitmap& src, | 122 void filterBorderPixels(const SkBitmap& src, |
| 125 SkBitmap* result, | 123 SkBitmap* result, |
| 126 const SkIRect& rect, | 124 const SkIRect& rect, |
| 127 const SkIRect& bounds) const; | 125 const SkIRect& bounds) const; |
| 128 }; | 126 }; |
| 129 | 127 |
| 130 #endif | 128 #endif |
| OLD | NEW |