diff options
author | 2015-08-04 07:59:37 -0700 | |
---|---|---|
committer | 2015-08-04 07:59:37 -0700 | |
commit | 4b3050b410254d0cb38df9a30ae2e209124fa1a2 (patch) | |
tree | 060bac88523db4058c11c364319ace7368749848 /src/gpu/effects/GrDitherEffect.cpp | |
parent | c369348aa596d7be05c9ce0ca5d349e5d1903789 (diff) |
Added registerChild; transforms, textures, glKey automatically handled.
BUG=skia:
Review URL: https://codereview.chromium.org/1266633003
Diffstat (limited to 'src/gpu/effects/GrDitherEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrDitherEffect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |