Index: src/effects/gradients/SkSweepGradient.cpp |
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp |
index c3278b23925fcdb61f82fca01da01e164ae900c2..4936d31505f5cb9097540cc48b338e3e18e65c91 100644 |
--- a/src/effects/gradients/SkSweepGradient.cpp |
+++ b/src/effects/gradients/SkSweepGradient.cpp |
@@ -214,11 +214,6 @@ public: |
const char* name() const override { return "Sweep Gradient"; } |
- virtual void getGLProcessorKey(const GrGLSLCaps& caps, |
- GrProcessorKeyBuilder* b) const override { |
- GrGLSweepGradient::GenKey(*this, caps, b); |
- } |
- |
GrGLFragmentProcessor* createGLInstance() const override { |
return SkNEW_ARGS(GrGLSweepGradient, (*this)); |
} |
@@ -231,6 +226,12 @@ private: |
: INHERITED(ctx, procDataManager, shader, matrix, SkShader::kClamp_TileMode) { |
this->initClassID<GrSweepGradient>(); |
} |
+ |
+ virtual void onGetGLProcessorKey(const GrGLSLCaps& caps, |
+ GrProcessorKeyBuilder* b) const override { |
+ GrGLSweepGradient::GenKey(*this, caps, b); |
+ } |
+ |
GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
typedef GrGradientEffect INHERITED; |