| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 const CropRect* cropRect); | 79 const CropRect* cropRect); |
| 80 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); | 80 explicit SkMatrixConvolutionImageFilter(SkReadBuffer& buffer); |
| 81 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 81 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 82 | 82 |
| 83 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 83 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 84 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 84 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
| 85 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const
SK_OVERRIDE; | 85 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const
SK_OVERRIDE; |
| 86 | 86 |
| 87 | 87 |
| 88 #if SK_SUPPORT_GPU | 88 #if SK_SUPPORT_GPU |
| 89 virtual bool asNewEffect(GrEffect** effect, | 89 virtual bool asNewEffect(GrEffectRef** effect, |
| 90 GrTexture*, | 90 GrTexture*, |
| 91 const SkMatrix& ctm, | 91 const SkMatrix& ctm, |
| 92 const SkIRect& bounds) const SK_OVERRIDE; | 92 const SkIRect& bounds) const SK_OVERRIDE; |
| 93 #endif | 93 #endif |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 SkISize fKernelSize; | 96 SkISize fKernelSize; |
| 97 SkScalar* fKernel; | 97 SkScalar* fKernel; |
| 98 SkScalar fGain; | 98 SkScalar fGain; |
| 99 SkScalar fBias; | 99 SkScalar fBias; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 116 SkBitmap* result, | 116 SkBitmap* result, |
| 117 const SkIRect& rect, | 117 const SkIRect& rect, |
| 118 const SkIRect& bounds) const; | 118 const SkIRect& bounds) const; |
| 119 void filterBorderPixels(const SkBitmap& src, | 119 void filterBorderPixels(const SkBitmap& src, |
| 120 SkBitmap* result, | 120 SkBitmap* result, |
| 121 const SkIRect& rect, | 121 const SkIRect& rect, |
| 122 const SkIRect& bounds) const; | 122 const SkIRect& bounds) const; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 #endif | 125 #endif |
| OLD | NEW |