aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-02-03 12:25:40 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-03 12:25:40 -0800
commit9cdb9920fcad286ecf7875ea19902022b644fbdc (patch)
treed3bd4068495f5b18530889c60c73f6ce27489323 /tests
parentd32d19a2299d03fa9e9da9aa8b5383c7f64b9495 (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 'tests')
-rw-r--r--tests/GLProgramsTest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 3933e649d8..81d1013dd0 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -45,9 +45,7 @@ static const uint32_t kMaxKeySize = 1024;
class GLBigKeyProcessor : public GrGLSLFragmentProcessor {
public:
- GLBigKeyProcessor(const GrProcessor&) {}
-
- virtual void emitCode(EmitArgs& args) override {
+ void emitCode(EmitArgs& args) override {
// pass through
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
if (args.fInputColor) {
@@ -76,7 +74,7 @@ public:
const char* name() const override { return "Big Ole Key"; }
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override {
- return new GLBigKeyProcessor(*this);
+ return new GLBigKeyProcessor;
}
private: