From b1daa86732fe70aa4630c89d75ff0fd619d77c77 Mon Sep 17 00:00:00 2001 From: wangyix Date: Tue, 18 Aug 2015 11:29:31 -0700 Subject: When getGLInstance is called on a frag proc, the resulting GrGLFragmentProcessor will be the root of a tree of GrGLFragmentProcessors that mirrors the GrFragmentProcessor's tree. This allows setData() to be called recursively (removing the responsibility from compose shader) and allows gl instances direct access to their children gl instances so they can emit their code. BUG=skia:4182 Review URL: https://codereview.chromium.org/1287023009 --- src/effects/SkArithmeticMode_gpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/effects/SkArithmeticMode_gpu.h') diff --git a/src/effects/SkArithmeticMode_gpu.h b/src/effects/SkArithmeticMode_gpu.h index 36f0f40024..4f780cf71b 100644 --- a/src/effects/SkArithmeticMode_gpu.h +++ b/src/effects/SkArithmeticMode_gpu.h @@ -42,8 +42,6 @@ public: const char* name() const override { return "Arithmetic"; } - GrGLFragmentProcessor* createGLInstance() const override; - float k1() const { return fK1; } float k2() const { return fK2; } float k3() const { return fK3; } @@ -51,6 +49,8 @@ public: bool enforcePMColor() const { return fEnforcePMColor; } private: + GrGLFragmentProcessor* onCreateGLInstance() const override; + void onGetGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override; bool onIsEqual(const GrFragmentProcessor&) const override; -- cgit v1.2.3