Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index 87cca3bf9c876ebfd08bc6ecb72b61ca5cc5d0b9..af21ffc77e86b2ef3d9dd94daec867d0230374d0 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -1213,12 +1213,11 @@ bool GrGradientEffect::onIsEqual(const GrProcessor& processor) const { |
} |
void GrGradientEffect::onComputeInvariantOutput(InvariantOutput* inout) const { |
- if (fIsOpaque && inout->isOpaque()) { |
- inout->fValidFlags = kA_GrColorComponentFlag; |
+ if (fIsOpaque) { |
+ inout->mulByUnknownOpaqueColor(); |
} else { |
- inout->fValidFlags = 0; |
+ inout->mulByUnknownColor(); |
} |
- inout->fIsSingleComponent = false; |
} |
int GrGradientEffect::RandomGradientParams(SkRandom* random, |