| Index: src/gpu/effects/GrDistanceFieldTextureEffect.cpp
|
| diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp
|
| index c8ed5c9edadf1a72b804d45ecd52c31fa978b9e8..3374adcdd1bf594c24027b10cde727393432c5ea 100755
|
| --- a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp
|
| +++ b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp
|
| @@ -207,12 +207,7 @@ bool GrDistanceFieldTextureEffect::onIsEqual(const GrProcessor& other) const {
|
| }
|
|
|
| void GrDistanceFieldTextureEffect::onComputeInvariantOutput(InvariantOutput* inout) const {
|
| - if (inout->isOpaque() && GrPixelConfigIsOpaque(this->texture(0)->config())) {
|
| - inout->fValidFlags = kA_GrColorComponentFlag;
|
| - } else {
|
| - inout->fValidFlags = 0;
|
| - }
|
| - inout->fIsSingleComponent = false;
|
| + inout->mulByUnknownAlpha();
|
| }
|
|
|
| const GrBackendGeometryProcessorFactory& GrDistanceFieldTextureEffect::getFactory() const {
|
| @@ -391,12 +386,7 @@ bool GrDistanceFieldNoGammaTextureEffect::onIsEqual(const GrProcessor& other) co
|
| }
|
|
|
| void GrDistanceFieldNoGammaTextureEffect::onComputeInvariantOutput(InvariantOutput* inout) const {
|
| - if (inout->isOpaque() && GrPixelConfigIsOpaque(this->texture(0)->config())) {
|
| - inout->fValidFlags = kA_GrColorComponentFlag;
|
| - } else {
|
| - inout->fValidFlags = 0;
|
| - }
|
| - inout->fIsSingleComponent = false;
|
| + inout->mulByUnknownAlpha();
|
| }
|
|
|
| const GrBackendGeometryProcessorFactory& GrDistanceFieldNoGammaTextureEffect::getFactory() const {
|
| @@ -647,12 +637,7 @@ bool GrDistanceFieldLCDTextureEffect::onIsEqual(const GrProcessor& other) const
|
| }
|
|
|
| void GrDistanceFieldLCDTextureEffect::onComputeInvariantOutput(InvariantOutput* inout) const {
|
| - if (inout->isOpaque() && GrPixelConfigIsOpaque(this->texture(0)->config())) {
|
| - inout->fValidFlags = kA_GrColorComponentFlag;
|
| - } else {
|
| - inout->fValidFlags = 0;
|
| - }
|
| - inout->fIsSingleComponent = false;
|
| + inout->mulByUnknownColor();
|
| }
|
|
|
| const GrBackendGeometryProcessorFactory& GrDistanceFieldLCDTextureEffect::getFactory() const {
|
|
|