Index: src/effects/SkColorFilters.cpp |
diff --git a/src/effects/SkColorFilters.cpp b/src/effects/SkColorFilters.cpp |
index fdce937eaf9a188c1c18106e99ecf0f607604b7e..333b21af8c86f8855f613b2055c86b4d07b8828c 100644 |
--- a/src/effects/SkColorFilters.cpp |
+++ b/src/effects/SkColorFilters.cpp |
@@ -384,17 +384,15 @@ private: |
void ModeColorFilterEffect::onComputeInvariantOutput(InvariantOutput* inout) const { |
float inputColor[4]; |
- GrColorToRGBAFloat(inout->fColor, inputColor); |
+ GrColorToRGBAFloat(inout->color(), inputColor); |
float filterColor[4]; |
GrColorToRGBAFloat(fColor, filterColor); |
MaskedColorExpr result = |
color_filter_expression(fMode, |
MaskedColorExpr(filterColor, kRGBA_GrColorComponentFlags), |
- MaskedColorExpr(inputColor, inout->fValidFlags)); |
+ MaskedColorExpr(inputColor, inout->validFlags())); |
- inout->fColor = result.getColor(); |
- inout->fValidFlags = result.getValidComponents(); |
- inout->fIsSingleComponent = false; |
+ inout->setToOther(result.getValidComponents(), result.getColor()); |
} |
GR_DEFINE_FRAGMENT_PROCESSOR_TEST(ModeColorFilterEffect); |