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

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

Issue 1109863004: Use GLSLCaps for creating processor keys and GLSL-specific programs (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Created 5 years, 7 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/GrDitherEffect.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const SkISize& kernelSize() const { return fKernelSize; } 55 const SkISize& kernelSize() const { return fKernelSize; }
56 const float* kernelOffset() const { return fKernelOffset; } 56 const float* kernelOffset() const { return fKernelOffset; }
57 const float* kernel() const { return fKernel; } 57 const float* kernel() const { return fKernel; }
58 float gain() const { return fGain; } 58 float gain() const { return fGain; }
59 float bias() const { return fBias; } 59 float bias() const { return fBias; }
60 bool convolveAlpha() const { return fConvolveAlpha; } 60 bool convolveAlpha() const { return fConvolveAlpha; }
61 const GrTextureDomain& domain() const { return fDomain; } 61 const GrTextureDomain& domain() const { return fDomain; }
62 62
63 const char* name() const override { return "MatrixConvolution"; } 63 const char* name() const override { return "MatrixConvolution"; }
64 64
65 void getGLProcessorKey(const GrGLCaps&, GrProcessorKeyBuilder*) const overri de; 65 void getGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const over ride;
66 66
67 GrGLFragmentProcessor* createGLInstance() const override; 67 GrGLFragmentProcessor* createGLInstance() const override;
68 68
69 private: 69 private:
70 GrMatrixConvolutionEffect(GrTexture*, 70 GrMatrixConvolutionEffect(GrTexture*,
71 const SkIRect& bounds, 71 const SkIRect& bounds,
72 const SkISize& kernelSize, 72 const SkISize& kernelSize,
73 const SkScalar* kernel, 73 const SkScalar* kernel,
74 SkScalar gain, 74 SkScalar gain,
75 SkScalar bias, 75 SkScalar bias,
(...skipping 16 matching lines...) Expand all
92 float fKernelOffset[2]; 92 float fKernelOffset[2];
93 bool fConvolveAlpha; 93 bool fConvolveAlpha;
94 GrTextureDomain fDomain; 94 GrTextureDomain fDomain;
95 95
96 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 96 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
97 97
98 typedef GrSingleTextureEffect INHERITED; 98 typedef GrSingleTextureEffect INHERITED;
99 }; 99 };
100 100
101 #endif 101 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDitherEffect.cpp ('k') | src/gpu/effects/GrMatrixConvolutionEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698