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

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

Issue 654273002: Push isEqual/onIsEqual down from GrProcessor to subclasses. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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/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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 * kNearest). 83 * kNearest).
84 */ 84 */
85 static bool ShouldUseBicubic(const SkMatrix& localCoordsToDevice, 85 static bool ShouldUseBicubic(const SkMatrix& localCoordsToDevice,
86 GrTextureParams::FilterMode* filterMode); 86 GrTextureParams::FilterMode* filterMode);
87 87
88 private: 88 private:
89 GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], 89 GrBicubicEffect(GrTexture*, const SkScalar coefficients[16],
90 const SkMatrix &matrix, const SkShader::TileMode tileModes[2 ]); 90 const SkMatrix &matrix, const SkShader::TileMode tileModes[2 ]);
91 GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], 91 GrBicubicEffect(GrTexture*, const SkScalar coefficients[16],
92 const SkMatrix &matrix, const SkRect& domain); 92 const SkMatrix &matrix, const SkRect& domain);
93 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; 93 virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE;
94 94
95 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE; 95 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE;
96 96
97 float fCoefficients[16]; 97 float fCoefficients[16];
98 GrTextureDomain fDomain; 98 GrTextureDomain fDomain;
99 99
100 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 100 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
101 101
102 static const SkScalar gMitchellCoefficients[16]; 102 static const SkScalar gMitchellCoefficients[16];
103 103
104 typedef GrSingleTextureEffect INHERITED; 104 typedef GrSingleTextureEffect INHERITED;
105 }; 105 };
106 106
107 #endif 107 #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