Index: src/effects/SkLumaColorFilter.cpp |
diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp |
index 939accf13b187244e221f664c10b50049c0c4df6..8d5181a4f5f9dad9c6b412d2a7ed696171c2b1b1 100644 |
--- a/src/effects/SkLumaColorFilter.cpp |
+++ b/src/effects/SkLumaColorFilter.cpp |
@@ -65,10 +65,6 @@ public: |
const char* name() const override { return "Luminance-to-Alpha"; } |
- GrGLFragmentProcessor* createGLInstance() const override { |
- return SkNEW_ARGS(GLProcessor, (*this)); |
- } |
- |
class GLProcessor : public GrGLFragmentProcessor { |
public: |
GLProcessor(const GrProcessor&) {} |
@@ -100,6 +96,10 @@ private: |
this->initClassID<LumaColorFilterEffect>(); |
} |
+ GrGLFragmentProcessor* onCreateGLInstance() const override { |
+ return SkNEW_ARGS(GLProcessor, (*this)); |
+ } |
+ |
virtual void onGetGLProcessorKey(const GrGLSLCaps& caps, |
GrProcessorKeyBuilder* b) const override { |
GLProcessor::GenKey(*this, caps, b); |