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

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

Issue 2215323003: Start using RenderTargetProxy (omnibus) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 1 month 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.h ('k') | src/gpu/effects/GrSimpleTextureEffect.h » ('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 25 matching lines...) Expand all
36 const SkIRect& bounds, 36 const SkIRect& bounds,
37 const SkISize& kernelSize, 37 const SkISize& kernelSize,
38 SkScalar gain, 38 SkScalar gain,
39 SkScalar bias, 39 SkScalar bias,
40 const SkIPoint& kernelOffset, 40 const SkIPoint& kernelOffset,
41 GrTextureDomain::Mode tileMod e, 41 GrTextureDomain::Mode tileMod e,
42 bool convolveAlpha, 42 bool convolveAlpha,
43 SkScalar sigmaX, 43 SkScalar sigmaX,
44 SkScalar sigmaY); 44 SkScalar sigmaY);
45 45
46
47 static sk_sp<GrFragmentProcessor> MakeGaussian(GrTextureProxy* texture,
48 const SkIRect& bounds,
49 const SkISize& kernelSize,
50 SkScalar gain,
51 SkScalar bias,
52 const SkIPoint& kernelOffset,
53 GrTextureDomain::Mode tileMod e,
54 bool convolveAlpha,
55 SkScalar sigmaX,
56 SkScalar sigmaY);
57
46 const SkIRect& bounds() const { return fBounds; } 58 const SkIRect& bounds() const { return fBounds; }
47 const SkISize& kernelSize() const { return fKernelSize; } 59 const SkISize& kernelSize() const { return fKernelSize; }
48 const float* kernelOffset() const { return fKernelOffset; } 60 const float* kernelOffset() const { return fKernelOffset; }
49 const float* kernel() const { return fKernel; } 61 const float* kernel() const { return fKernel; }
50 float gain() const { return fGain; } 62 float gain() const { return fGain; }
51 float bias() const { return fBias; } 63 float bias() const { return fBias; }
52 bool convolveAlpha() const { return fConvolveAlpha; } 64 bool convolveAlpha() const { return fConvolveAlpha; }
53 const GrTextureDomain& domain() const { return fDomain; } 65 const GrTextureDomain& domain() const { return fDomain; }
54 66
55 const char* name() const override { return "MatrixConvolution"; } 67 const char* name() const override { return "MatrixConvolution"; }
(...skipping 28 matching lines...) Expand all
84 float fKernelOffset[2]; 96 float fKernelOffset[2];
85 bool fConvolveAlpha; 97 bool fConvolveAlpha;
86 GrTextureDomain fDomain; 98 GrTextureDomain fDomain;
87 99
88 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 100 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
89 101
90 typedef GrSingleTextureEffect INHERITED; 102 typedef GrSingleTextureEffect INHERITED;
91 }; 103 };
92 104
93 #endif 105 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConvolutionEffect.h ('k') | src/gpu/effects/GrSimpleTextureEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698