| Index: src/effects/SkAlphaThresholdFilter.cpp
|
| diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
|
| index 09cc61851c6c43c071a8eb156c1d6f83995d8a50..ec0fee7e6bd229dcd889a4340562c5b04601ca55 100644
|
| --- a/src/effects/SkAlphaThresholdFilter.cpp
|
| +++ b/src/effects/SkAlphaThresholdFilter.cpp
|
| @@ -76,8 +76,6 @@ public:
|
| static const char* Name() { return "Alpha Threshold"; }
|
|
|
| virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE;
|
| - virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE;
|
| -
|
| float innerThreshold() const { return fInnerThreshold; }
|
| float outerThreshold() const { return fOuterThreshold; }
|
|
|
| @@ -104,6 +102,9 @@ private:
|
|
|
| virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE;
|
|
|
| + virtual void onGetConstantColorComponents(GrColor* color, uint32_t* validFlags,
|
| + bool* isSingleComponent) const SK_OVERRIDE;
|
| +
|
| GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
|
|
|
| float fInnerThreshold;
|
| @@ -228,7 +229,8 @@ bool AlphaThresholdEffect::onIsEqual(const GrProcessor& sBase) const {
|
| this->fOuterThreshold == s.fOuterThreshold);
|
| }
|
|
|
| -void AlphaThresholdEffect::getConstantColorComponents(GrColor* color, uint32_t* validFlags) const {
|
| +void AlphaThresholdEffect::onGetConstantColorComponents(GrColor* color, uint32_t* validFlags,
|
| + bool* isSingleComponent) const {
|
| if ((*validFlags & kA_GrColorComponentFlag) && 0xFF == GrColorUnpackA(*color) &&
|
| GrPixelConfigIsOpaque(this->texture(0)->config())) {
|
| *validFlags = kA_GrColorComponentFlag;
|
|
|