| Index: src/effects/SkArithmeticMode_gpu.cpp
|
| diff --git a/src/effects/SkArithmeticMode_gpu.cpp b/src/effects/SkArithmeticMode_gpu.cpp
|
| index 3b815e5210a99631d3a7024517e261b60e004cca..61c28f36413029df4754fd6886e347d8001df73b 100644
|
| --- a/src/effects/SkArithmeticMode_gpu.cpp
|
| +++ b/src/effects/SkArithmeticMode_gpu.cpp
|
| @@ -306,15 +306,15 @@ GrArithmeticXPFactory::onCreateXferProcessor(const GrCaps& caps,
|
| }
|
|
|
|
|
| -void GrArithmeticXPFactory::getInvariantOutput(const GrProcOptInfo& colorPOI,
|
| - const GrProcOptInfo& coveragePOI,
|
| - GrXPFactory::InvariantOutput* output) const {
|
| - output->fWillBlendWithDst = true;
|
| -
|
| - // TODO: We could try to optimize this more. For example if we have solid coverage and fK1 and
|
| - // fK3 are zero, then we won't be blending the color with dst at all so we can know what the
|
| - // output color is (up to the valid color components passed in).
|
| - output->fBlendedColorFlags = 0;
|
| +void GrArithmeticXPFactory::getInvariantBlendedColor(const GrProcOptInfo& /*colorPOI*/,
|
| + const GrProcOptInfo& /*coveragePOI*/,
|
| + InvariantBlendedColor* blendedColor) const {
|
| + blendedColor->fWillBlendWithDst = true;
|
| +
|
| + // TODO: We could try to optimize this more. For example if fK1 and fK3 are zero, then we won't
|
| + // be blending the color with dst at all so we can know what the output color is (up to the
|
| + // valid color components passed in).
|
| + blendedColor->fKnownColorFlags = kNone_GrColorComponentFlags;
|
| }
|
|
|
| GR_DEFINE_XP_FACTORY_TEST(GrArithmeticXPFactory);
|
|
|