Index: src/gpu/effects/GrDitherEffect.cpp |
diff --git a/src/gpu/effects/GrDitherEffect.cpp b/src/gpu/effects/GrDitherEffect.cpp |
index 44aacfccab8adfb27f435ee94d9a33c74208cebf..43fe93769aaca848d3fd3c5df4e6a3e3e7e469a9 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(); } |