| Index: src/effects/SkLumaColorFilter.cpp
|
| diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp
|
| index 616bcde8912631ab103395d22a224df291d5ee61..ee2bfa654ccefe5529cef610c38112ec1f309016 100644
|
| --- a/src/effects/SkLumaColorFilter.cpp
|
| +++ b/src/effects/SkLumaColorFilter.cpp
|
| @@ -73,6 +73,13 @@
|
| return GrTBackendFragmentProcessorFactory<LumaColorFilterEffect>::getInstance();
|
| }
|
|
|
| + virtual void getConstantColorComponents(GrColor* color,
|
| + uint32_t* validFlags) const SK_OVERRIDE {
|
| + // The output is always black.
|
| + *color = GrColorPackRGBA(0, 0, 0, GrColorUnpackA(*color));
|
| + *validFlags = kRGB_GrColorComponentFlags;
|
| + }
|
| +
|
| class GLProcessor : public GrGLFragmentProcessor {
|
| public:
|
| GLProcessor(const GrBackendProcessorFactory& factory,
|
| @@ -112,13 +119,6 @@
|
| virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE {
|
| return true;
|
| }
|
| -
|
| - virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE {
|
| - // The output is always black.
|
| - inout->fColor = GrColorPackRGBA(0, 0, 0, GrColorUnpackA(inout->fColor));
|
| - inout->fValidFlags = kRGB_GrColorComponentFlags;
|
| - inout->fIsSingleComponent = false;
|
| - }
|
| };
|
|
|
| GrFragmentProcessor* SkLumaColorFilter::asFragmentProcessor(GrContext*) const {
|
|
|