commit | 9cdb9920fcad286ecf7875ea19902022b644fbdc | [log] [tgz] |
---|---|---|
author | robertphillips <robertphillips@google.com> | Wed Feb 03 12:25:40 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Wed Feb 03 12:25:40 2016 -0800 |
tree | d3bd4068495f5b18530889c60c73f6ce27489323 | |
parent | d32d19a2299d03fa9e9da9aa8b5383c7f64b9495 [diff] [blame] |
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
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp index 5ac86a9..ace736c 100644 --- a/src/gpu/effects/GrConfigConversionEffect.cpp +++ b/src/gpu/effects/GrConfigConversionEffect.cpp
@@ -16,9 +16,7 @@ class GrGLConfigConversionEffect : public GrGLSLFragmentProcessor { public: - GrGLConfigConversionEffect() {} - - virtual void emitCode(EmitArgs& args) override { + void emitCode(EmitArgs& args) override { const GrConfigConversionEffect& cce = args.fFp.cast<GrConfigConversionEffect>(); const GrSwizzle& swizzle = cce.swizzle(); GrConfigConversionEffect::PMConversion pmConversion = cce.pmConversion();