diff options
author | 2016-02-03 12:25:40 -0800 | |
---|---|---|
committer | 2016-02-03 12:25:40 -0800 | |
commit | 9cdb9920fcad286ecf7875ea19902022b644fbdc (patch) | |
tree | d3bd4068495f5b18530889c60c73f6ce27489323 /src/gpu/effects/GrDitherEffect.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/GrDitherEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrDitherEffect.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/effects/GrDitherEffect.cpp b/src/gpu/effects/GrDitherEffect.cpp index 44aacfccab..43fe93769a 100644 --- a/src/gpu/effects/GrDitherEffect.cpp +++ b/src/gpu/effects/GrDitherEffect.cpp @@ -60,17 +60,12 @@ const GrFragmentProcessor* DitherEffect::TestCreate(GrProcessorTestData*) { class GLDitherEffect : public GrGLSLFragmentProcessor { public: - GLDitherEffect(const GrProcessor&); - - virtual void emitCode(EmitArgs& args) override; + void emitCode(EmitArgs& args) override; private: typedef GrGLSLFragmentProcessor INHERITED; }; -GLDitherEffect::GLDitherEffect(const GrProcessor&) { -} - void GLDitherEffect::emitCode(EmitArgs& args) { GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; // Generate a random number based on the fragment position. For this @@ -97,7 +92,7 @@ void DitherEffect::onGetGLSLProcessorKey(const GrGLSLCaps& caps, } GrGLSLFragmentProcessor* DitherEffect::onCreateGLSLInstance() const { - return new GLDitherEffect(*this); + return new GLDitherEffect; } GrFragmentProcessor* GrDitherEffect::Create() { return DitherEffect::Create(); } |