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/gradients/SkLinearGradient.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/gradients/SkLinearGradient.cpp')
-rw-r--r-- | src/effects/gradients/SkLinearGradient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp index 2c8e183137..5bf6b73f07 100644 --- a/src/effects/gradients/SkLinearGradient.cpp +++ b/src/effects/gradients/SkLinearGradient.cpp @@ -474,7 +474,7 @@ public: const TransformedCoordsArray&, const TextureSamplerArray&) override; - static void GenKey(const GrProcessor& processor, const GrGLCaps&, GrProcessorKeyBuilder* b) { + static void GenKey(const GrProcessor& processor, const GrGLSLCaps&, GrProcessorKeyBuilder* b) { b->add32(GenBaseGradientKey(processor)); } @@ -499,7 +499,7 @@ public: const char* name() const override { return "Linear Gradient"; } - virtual void getGLProcessorKey(const GrGLCaps& caps, + virtual void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override { GrGLLinearGradient::GenKey(*this, caps, b); } |