| Index: src/effects/SkArithmeticMode.cpp
|
| diff --git a/src/effects/SkArithmeticMode.cpp b/src/effects/SkArithmeticMode.cpp
|
| index 85af19cf551fd636f31c13d01ce680e8b3394b00..31a9dbcaa4b474d72a1b71147e0994a299716231 100644
|
| --- a/src/effects/SkArithmeticMode.cpp
|
| +++ b/src/effects/SkArithmeticMode.cpp
|
| @@ -289,8 +289,6 @@ public:
|
| static const char* Name() { return "Arithmetic"; }
|
| GrTexture* backgroundTexture() const { return fBackgroundAccess.getTexture(); }
|
|
|
| - virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE;
|
| -
|
| float k1() const { return fK1; }
|
| float k2() const { return fK2; }
|
| float k3() const { return fK3; }
|
| @@ -300,6 +298,9 @@ public:
|
| private:
|
| virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE;
|
|
|
| + virtual void onGetConstantColorComponents(GrColor* color, uint32_t* validFlags,
|
| + bool* isSingleComponent) const SK_OVERRIDE;
|
| +
|
| GrArithmeticEffect(float k1, float k2, float k3, float k4, bool enforcePMColor,
|
| GrTexture* background);
|
| float fK1, fK2, fK3, fK4;
|
| @@ -344,7 +345,8 @@ const GrBackendFragmentProcessorFactory& GrArithmeticEffect::getFactory() const
|
| return GrTBackendFragmentProcessorFactory<GrArithmeticEffect>::getInstance();
|
| }
|
|
|
| -void GrArithmeticEffect::getConstantColorComponents(GrColor* color, uint32_t* validFlags) const {
|
| +void GrArithmeticEffect::onGetConstantColorComponents(GrColor* color, uint32_t* validFlags,
|
| + bool* isSingleComponent) const {
|
| // TODO: optimize this
|
| *validFlags = 0;
|
| }
|
|
|