diff options
author | robertphillips <robertphillips@google.com> | 2016-02-03 12:25:40 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-03 12:25:40 -0800 |
commit | 9cdb9920fcad286ecf7875ea19902022b644fbdc (patch) | |
tree | d3bd4068495f5b18530889c60c73f6ce27489323 /src/gpu/effects/GrBicubicEffect.cpp | |
parent | d32d19a2299d03fa9e9da9aa8b5383c7f64b9495 (diff) |
Clean up GrGLSLFragmentProcessor-derived classes
In some other patches it was observed that many of the GrGLSLFragmentProcessor-derived classes needlessly pass a parameter to their constructors.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1666773002
Review URL: https://codereview.chromium.org/1666773002
Diffstat (limited to 'src/gpu/effects/GrBicubicEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrBicubicEffect.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/effects/GrBicubicEffect.cpp b/src/gpu/effects/GrBicubicEffect.cpp index 37ac4ab766..cc38d626a9 100644 --- a/src/gpu/effects/GrBicubicEffect.cpp +++ b/src/gpu/effects/GrBicubicEffect.cpp @@ -23,9 +23,7 @@ const SkScalar GrBicubicEffect::gMitchellCoefficients[16] = { class GrGLBicubicEffect : public GrGLSLFragmentProcessor { public: - GrGLBicubicEffect(const GrProcessor&); - - virtual void emitCode(EmitArgs&) override; + void emitCode(EmitArgs&) override; static inline void GenKey(const GrProcessor& effect, const GrGLSLCaps&, GrProcessorKeyBuilder* b) { @@ -46,9 +44,6 @@ private: typedef GrGLSLFragmentProcessor INHERITED; }; -GrGLBicubicEffect::GrGLBicubicEffect(const GrProcessor&) { -} - void GrGLBicubicEffect::emitCode(EmitArgs& args) { const GrTextureDomain& domain = args.fFp.cast<GrBicubicEffect>().domain(); @@ -168,7 +163,7 @@ void GrBicubicEffect::onGetGLSLProcessorKey(const GrGLSLCaps& caps, } GrGLSLFragmentProcessor* GrBicubicEffect::onCreateGLSLInstance() const { - return new GrGLBicubicEffect(*this); + return new GrGLBicubicEffect; } bool GrBicubicEffect::onIsEqual(const GrFragmentProcessor& sBase) const { |