| Index: src/effects/SkLightingImageFilter.cpp
|
| diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp
|
| index f766562128cd6c1c65a700f6172b3fb19a1d5aac..d47ded24fbe48308b6702723ded88ba1b56b44b2 100644
|
| --- a/src/effects/SkLightingImageFilter.cpp
|
| +++ b/src/effects/SkLightingImageFilter.cpp
|
| @@ -350,15 +350,15 @@ public:
|
| SkScalar surfaceScale() const { return fSurfaceScale; }
|
| const SkMatrix& filterMatrix() const { return fFilterMatrix; }
|
|
|
| - virtual void getConstantColorComponents(GrColor* color,
|
| - uint32_t* validFlags) const SK_OVERRIDE {
|
| - // lighting shaders are complicated. We just throw up our hands.
|
| - *validFlags = 0;
|
| - }
|
| -
|
| protected:
|
| virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE;
|
|
|
| + virtual void onComputeInvarientOutput(InvarientOutput* invarientOutput) const SK_OVERRIDE {
|
| + // lighting shaders are complicated. We just throw up our hands.
|
| + invarientOutput->validFlags = 0;
|
| + invarientOutput->isSingleComponent = false;
|
| + }
|
| +
|
| private:
|
| typedef GrSingleTextureEffect INHERITED;
|
| const SkLight* fLight;
|
|
|