diff options
Diffstat (limited to 'src/core/SkColorMatrixFilterRowMajor255.cpp')
-rw-r--r-- | src/core/SkColorMatrixFilterRowMajor255.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/SkColorMatrixFilterRowMajor255.cpp b/src/core/SkColorMatrixFilterRowMajor255.cpp index 778fe98c4e..2bcc79e4cc 100644 --- a/src/core/SkColorMatrixFilterRowMajor255.cpp +++ b/src/core/SkColorMatrixFilterRowMajor255.cpp @@ -393,7 +393,7 @@ private: // then we can't know the final result. if (0 != fMatrix[kAlphaRowStartIdx + i]) { if (!(inout->validFlags() & kRGBAFlags[i])) { - inout->setToUnknown(GrInvariantOutput::kWill_ReadInput); + inout->setToUnknown(); return; } else { uint32_t component = (inout->color() >> kShifts[i]) & 0xFF; @@ -407,8 +407,7 @@ private: // underflow this may deviate from the actual result. Maybe the effect should pin its // result if the matrix could over/underflow for any component? inout->setToOther(kA_GrColorComponentFlag, - static_cast<uint8_t>(SkScalarPin(outputA, 0, 255)) << GrColor_SHIFT_A, - GrInvariantOutput::kWill_ReadInput); + static_cast<uint8_t>(SkScalarPin(outputA, 0, 255)) << GrColor_SHIFT_A); } SkScalar fMatrix[20]; |