From 4b3050b410254d0cb38df9a30ae2e209124fa1a2 Mon Sep 17 00:00:00 2001 From: wangyix Date: Tue, 4 Aug 2015 07:59:37 -0700 Subject: Added registerChild; transforms, textures, glKey automatically handled. BUG=skia: Review URL: https://codereview.chromium.org/1266633003 --- src/gpu/effects/GrDitherEffect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gpu/effects/GrDitherEffect.cpp') diff --git a/src/gpu/effects/GrDitherEffect.cpp b/src/gpu/effects/GrDitherEffect.cpp index e87014094a..6d39450631 100644 --- a/src/gpu/effects/GrDitherEffect.cpp +++ b/src/gpu/effects/GrDitherEffect.cpp @@ -25,8 +25,6 @@ public: const char* name() const override { return "Dither"; } - void getGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const override; - GrGLFragmentProcessor* createGLInstance() const override; private: @@ -35,6 +33,8 @@ private: this->setWillReadFragmentPosition(); } + void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const override; + // All dither effects are equal bool onIsEqual(const GrFragmentProcessor&) const override { return true; } @@ -92,7 +92,7 @@ void GLDitherEffect::emitCode(EmitArgs& args) { ////////////////////////////////////////////////////////////////////////////// -void DitherEffect::getGLProcessorKey(const GrGLSLCaps& caps, +void DitherEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const { GLDitherEffect::GenKey(*this, caps, b); } -- cgit v1.2.3