diff options
author | jvanverth <jvanverth@google.com> | 2015-04-28 08:48:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-28 08:48:20 -0700 |
commit | cfc18867d982119d9dc2888bf09f1093012daadd (patch) | |
tree | af55e571828da1a7353457451bafab547079fa1f /src/effects/SkAlphaThresholdFilter.cpp | |
parent | 77772f3ca36c3fb7f2195615cce2adac2be2fec6 (diff) |
Use GLSLCaps for creating processor keys and GLSL-specific programs
Effectively all this does is future-proof any GLSL-specific code, as
GLSLCaps is just a typedef of GLCaps.
BUG=skia:
Review URL: https://codereview.chromium.org/1109863004
Diffstat (limited to 'src/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r-- | src/effects/SkAlphaThresholdFilter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp index abc4d3327c..2d0fe3e861 100644 --- a/src/effects/SkAlphaThresholdFilter.cpp +++ b/src/effects/SkAlphaThresholdFilter.cpp @@ -76,7 +76,7 @@ public: float innerThreshold() const { return fInnerThreshold; } float outerThreshold() const { return fOuterThreshold; } - void getGLProcessorKey(const GrGLCaps&, GrProcessorKeyBuilder*) const override; + void getGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const override; GrGLFragmentProcessor* createGLInstance() const override; @@ -214,7 +214,7 @@ GrFragmentProcessor* AlphaThresholdEffect::TestCreate(SkRandom* random, /////////////////////////////////////////////////////////////////////////////// -void AlphaThresholdEffect::getGLProcessorKey(const GrGLCaps& caps, +void AlphaThresholdEffect::getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const { GrGLAlphaThresholdEffect::GenKey(*this, caps, b); } |