Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index f6b6f6a9b52bb5cfabc858ef0fd46fdeef1e4538..7ca1b604209c61735c0a0fbc6b0999d8c5cf18dd 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -495,11 +495,6 @@ public: |
const char* name() const override { return "Linear Gradient"; } |
- virtual void getGLProcessorKey(const GrGLSLCaps& caps, |
- GrProcessorKeyBuilder* b) const override { |
- GrGLLinearGradient::GenKey(*this, caps, b); |
- } |
- |
GrGLFragmentProcessor* createGLInstance() const override { |
return SkNEW_ARGS(GrGLLinearGradient, (*this)); |
} |
@@ -513,6 +508,12 @@ private: |
: INHERITED(ctx, procDataManager, shader, matrix, tm) { |
this->initClassID<GrLinearGradient>(); |
} |
+ |
+ virtual void onGetGLProcessorKey(const GrGLSLCaps& caps, |
+ GrProcessorKeyBuilder* b) const override { |
+ GrGLLinearGradient::GenKey(*this, caps, b); |
+ } |
+ |
GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
typedef GrGradientEffect INHERITED; |