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

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

Issue 1443743002: Rename some processor functions from GL to GLSL (Closed) Base URL: https://skia.googlesource.com/skia.git@primProcs
Patch Set: nits Created 5 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/GrBezierEffect.cpp ('k') | src/gpu/effects/GrBicubicEffect.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 2013 Google Inc. 2 * Copyright 2013 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 GrBicubicTextureEffect_DEFINED 8 #ifndef GrBicubicTextureEffect_DEFINED
9 #define GrBicubicTextureEffect_DEFINED 9 #define GrBicubicTextureEffect_DEFINED
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 */ 80 */
81 static bool ShouldUseBicubic(const SkMatrix& localCoordsToDevice, 81 static bool ShouldUseBicubic(const SkMatrix& localCoordsToDevice,
82 GrTextureParams::FilterMode* filterMode); 82 GrTextureParams::FilterMode* filterMode);
83 83
84 private: 84 private:
85 GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], const SkMatrix &matrix, 85 GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], const SkMatrix &matrix,
86 const SkShader::TileMode tileModes[2]); 86 const SkShader::TileMode tileModes[2]);
87 GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], const SkMatrix &matrix, 87 GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], const SkMatrix &matrix,
88 const SkRect& domain); 88 const SkRect& domain);
89 89
90 GrGLSLFragmentProcessor* onCreateGLInstance() const override; 90 GrGLSLFragmentProcessor* onCreateGLSLInstance() const override;
91 91
92 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov erride; 92 void onGetGLSLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const override;
93 93
94 bool onIsEqual(const GrFragmentProcessor&) const override; 94 bool onIsEqual(const GrFragmentProcessor&) const override;
95 95
96 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; 96 void onComputeInvariantOutput(GrInvariantOutput* inout) const override;
97 97
98 float fCoefficients[16]; 98 float fCoefficients[16];
99 GrTextureDomain fDomain; 99 GrTextureDomain fDomain;
100 100
101 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 101 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
102 102
103 static const SkScalar gMitchellCoefficients[16]; 103 static const SkScalar gMitchellCoefficients[16];
104 104
105 typedef GrSingleTextureEffect INHERITED; 105 typedef GrSingleTextureEffect INHERITED;
106 }; 106 };
107 107
108 #endif 108 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrBezierEffect.cpp ('k') | src/gpu/effects/GrBicubicEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698