diff options
author | 2015-08-18 11:29:31 -0700 | |
---|---|---|
committer | 2015-08-18 11:29:32 -0700 | |
commit | b1daa86732fe70aa4630c89d75ff0fd619d77c77 (patch) | |
tree | 9ddc71e82c682c42968343cfdbea68038c2ca11b /src/gpu/effects/GrConvolutionEffect.h | |
parent | 935d6cfaa78b6be75c9fcc596805f0f9b8da972e (diff) |
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
Diffstat (limited to 'src/gpu/effects/GrConvolutionEffect.h')
-rw-r--r-- | src/gpu/effects/GrConvolutionEffect.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/effects/GrConvolutionEffect.h b/src/gpu/effects/GrConvolutionEffect.h index e65c4c43c9..37faa08924 100644 --- a/src/gpu/effects/GrConvolutionEffect.h +++ b/src/gpu/effects/GrConvolutionEffect.h @@ -63,8 +63,6 @@ public: const char* name() const override { return "Convolution"; } - GrGLFragmentProcessor* createGLInstance() const override; - enum { // This was decided based on the min allowed value for the max texture // samples per fragment program run in DX9SM2 (32). A sigma param of 4.0 @@ -98,6 +96,8 @@ private: bool useBounds, float bounds[2]); + GrGLFragmentProcessor* onCreateGLInstance() const override; + void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const override; bool onIsEqual(const GrFragmentProcessor&) const override; |