OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
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 GrMatrixConvolutionEffect_DEFINED | 8 #ifndef GrMatrixConvolutionEffect_DEFINED |
9 #define GrMatrixConvolutionEffect_DEFINED | 9 #define GrMatrixConvolutionEffect_DEFINED |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 const SkIRect& bounds, | 35 const SkIRect& bounds, |
36 const SkISize& kernelSize, | 36 const SkISize& kernelSize, |
37 SkScalar gain, | 37 SkScalar gain, |
38 SkScalar bias, | 38 SkScalar bias, |
39 const SkIPoint& kernelOffset, | 39 const SkIPoint& kernelOffset, |
40 GrTextureDomain::Mode tileMode, | 40 GrTextureDomain::Mode tileMode, |
41 bool convolveAlpha, | 41 bool convolveAlpha, |
42 SkScalar sigmaX, | 42 SkScalar sigmaX, |
43 SkScalar sigmaY); | 43 SkScalar sigmaY); |
44 | 44 |
45 virtual ~GrMatrixConvolutionEffect(); | |
46 | |
47 const SkIRect& bounds() const { return fBounds; } | 45 const SkIRect& bounds() const { return fBounds; } |
48 const SkISize& kernelSize() const { return fKernelSize; } | 46 const SkISize& kernelSize() const { return fKernelSize; } |
49 const float* kernelOffset() const { return fKernelOffset; } | 47 const float* kernelOffset() const { return fKernelOffset; } |
50 const float* kernel() const { return fKernel; } | 48 const float* kernel() const { return fKernel; } |
51 float gain() const { return fGain; } | 49 float gain() const { return fGain; } |
52 float bias() const { return fBias; } | 50 float bias() const { return fBias; } |
53 bool convolveAlpha() const { return fConvolveAlpha; } | 51 bool convolveAlpha() const { return fConvolveAlpha; } |
54 const GrTextureDomain& domain() const { return fDomain; } | 52 const GrTextureDomain& domain() const { return fDomain; } |
55 | 53 |
56 const char* name() const override { return "MatrixConvolution"; } | 54 const char* name() const override { return "MatrixConvolution"; } |
(...skipping 28 matching lines...) Expand all Loading... |
85 float fKernelOffset[2]; | 83 float fKernelOffset[2]; |
86 bool fConvolveAlpha; | 84 bool fConvolveAlpha; |
87 GrTextureDomain fDomain; | 85 GrTextureDomain fDomain; |
88 | 86 |
89 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 87 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
90 | 88 |
91 typedef GrSingleTextureEffect INHERITED; | 89 typedef GrSingleTextureEffect INHERITED; |
92 }; | 90 }; |
93 | 91 |
94 #endif | 92 #endif |
OLD | NEW |