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/GrSimpleTextureEffect.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/GrSimpleTextureEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrSimpleTextureEffect.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpu/effects/GrSimpleTextureEffect.cpp b/src/gpu/effects/GrSimpleTextureEffect.cpp index 74e86249b0..6f47b04700 100644 --- a/src/gpu/effects/GrSimpleTextureEffect.cpp +++ b/src/gpu/effects/GrSimpleTextureEffect.cpp @@ -13,9 +13,7 @@ class GrGLSimpleTextureEffect : public GrGLSLFragmentProcessor { public: - GrGLSimpleTextureEffect(const GrProcessor&) {} - - virtual void emitCode(EmitArgs& args) override { + void emitCode(EmitArgs& args) override { GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; fragBuilder->codeAppendf("\t%s = ", args.fOutputColor); fragBuilder->appendTextureLookupAndModulate(args.fInputColor, @@ -41,7 +39,7 @@ void GrSimpleTextureEffect::onGetGLSLProcessorKey(const GrGLSLCaps& caps, } GrGLSLFragmentProcessor* GrSimpleTextureEffect::onCreateGLSLInstance() const { - return new GrGLSimpleTextureEffect(*this); + return new GrGLSimpleTextureEffect; } /////////////////////////////////////////////////////////////////////////////// |