diff options
author | 2016-02-03 12:25:40 -0800 | |
---|---|---|
committer | 2016-02-03 12:25:40 -0800 | |
commit | 9cdb9920fcad286ecf7875ea19902022b644fbdc (patch) | |
tree | d3bd4068495f5b18530889c60c73f6ce27489323 /src/effects/SkAlphaThresholdFilter.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/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r-- | src/effects/SkAlphaThresholdFilter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp index 6cadbc3e51..71d9aa2077 100644 --- a/src/effects/SkAlphaThresholdFilter.cpp +++ b/src/effects/SkAlphaThresholdFilter.cpp @@ -143,9 +143,7 @@ private: class GrGLAlphaThresholdEffect : public GrGLSLFragmentProcessor { public: - GrGLAlphaThresholdEffect(const GrFragmentProcessor&) {} - - virtual void emitCode(EmitArgs&) override; + void emitCode(EmitArgs&) override; protected: void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override; @@ -237,7 +235,7 @@ void AlphaThresholdEffect::onGetGLSLProcessorKey(const GrGLSLCaps& caps, } GrGLSLFragmentProcessor* AlphaThresholdEffect::onCreateGLSLInstance() const { - return new GrGLAlphaThresholdEffect(*this); + return new GrGLAlphaThresholdEffect; } bool AlphaThresholdEffect::onIsEqual(const GrFragmentProcessor& sBase) const { |