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/SkMorphologyImageFilter.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/SkMorphologyImageFilter.cpp')
-rw-r--r-- | src/effects/SkMorphologyImageFilter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp index 18794c47b7..9dff99f3a5 100644 --- a/src/effects/SkMorphologyImageFilter.cpp +++ b/src/effects/SkMorphologyImageFilter.cpp @@ -315,7 +315,7 @@ public: const char* name() const override { return "Morphology"; } - void getGLProcessorKey(const GrGLCaps&, GrProcessorKeyBuilder*) const override; + void getGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const override; GrGLFragmentProcessor* createGLInstance() const override; @@ -351,7 +351,7 @@ public: const TransformedCoordsArray&, const TextureSamplerArray&) override; - static inline void GenKey(const GrProcessor&, const GrGLCaps&, GrProcessorKeyBuilder* b); + static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder* b); void setData(const GrGLProgramDataManager&, const GrProcessor&) override; @@ -450,7 +450,7 @@ void GrGLMorphologyEffect::emitCode(GrGLFPBuilder* builder, } void GrGLMorphologyEffect::GenKey(const GrProcessor& proc, - const GrGLCaps&, GrProcessorKeyBuilder* b) { + const GrGLSLCaps&, GrProcessorKeyBuilder* b) { const GrMorphologyEffect& m = proc.cast<GrMorphologyEffect>(); uint32_t key = static_cast<uint32_t>(m.radius()); key |= (m.type() << 8); @@ -517,7 +517,7 @@ GrMorphologyEffect::GrMorphologyEffect(GrTexture* texture, GrMorphologyEffect::~GrMorphologyEffect() { } -void GrMorphologyEffect::getGLProcessorKey(const GrGLCaps& caps, GrProcessorKeyBuilder* b) const { +void GrMorphologyEffect::getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const { GrGLMorphologyEffect::GenKey(*this, caps, b); } |