Index: src/gpu/effects/GrYUVtoRGBEffect.cpp |
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp |
index 7d77c1f3b41c6682e66c4f24297c79ebcb5949dc..913c37e39b77e84cfdb79cd6189418fe034731d3 100644 |
--- a/src/gpu/effects/GrYUVtoRGBEffect.cpp |
+++ b/src/gpu/effects/GrYUVtoRGBEffect.cpp |
@@ -80,7 +80,8 @@ public: |
fsBuilder->codeAppendf(".r,\n\t\t1.0) * %s;\n", yuvMatrix); |
} |
- virtual void setData(const GrGLProgramDataManager& pdman, |
+ protected: |
+ virtual void onSetData(const GrGLProgramDataManager& pdman, |
const GrProcessor& processor) override { |
const YUVtoRGBEffect& yuvEffect = processor.cast<YUVtoRGBEffect>(); |
switch (yuvEffect.getColorSpace()) { |
@@ -102,10 +103,6 @@ public: |
typedef GrGLFragmentProcessor INHERITED; |
}; |
- GrGLFragmentProcessor* createGLInstance() const override { |
- return SkNEW_ARGS(GLProcessor, (*this)); |
- } |
- |
private: |
YUVtoRGBEffect(GrProcessorDataManager*, GrTexture* yTexture, GrTexture* uTexture, |
GrTexture* vTexture, const SkMatrix yuvMatrix[3], |
@@ -126,6 +123,10 @@ private: |
this->addTextureAccess(&fVAccess); |
} |
+ GrGLFragmentProcessor* onCreateGLInstance() const override { |
+ return SkNEW_ARGS(GLProcessor, (*this)); |
+ } |
+ |
virtual void onGetGLProcessorKey(const GrGLSLCaps& caps, |
GrProcessorKeyBuilder* b) const override { |
GLProcessor::GenKey(*this, caps, b); |