Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: src/gpu/effects/GrMatrixConvolutionEffect.h

Issue 1661143003: Next round of GrGLSLFragmentProcessor-derived class cleanup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix overlength line Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/effects/GrConvolutionEffect.cpp ('k') | src/gpu/effects/GrMatrixConvolutionEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConvolutionEffect.cpp ('k') | src/gpu/effects/GrMatrixConvolutionEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698