Index: src/gpu/effects/GrCoverageSetOpXP.cpp |
diff --git a/src/gpu/effects/GrCoverageSetOpXP.cpp b/src/gpu/effects/GrCoverageSetOpXP.cpp |
index 92a5c689a65d5acbf4fbf81238ea0357d8fc44e6..a0edfe71f33998eaff764948a8399cd7fbc1bae9 100644 |
--- a/src/gpu/effects/GrCoverageSetOpXP.cpp |
+++ b/src/gpu/effects/GrCoverageSetOpXP.cpp |
@@ -230,22 +230,10 @@ GrCoverageSetOpXPFactory::onCreateXferProcessor(const GrCaps& caps, |
return CoverageSetOpXP::Create(fRegionOp, fInvertCoverage); |
} |
-void GrCoverageSetOpXPFactory::getInvariantOutput(const GrProcOptInfo& colorPOI, |
- const GrProcOptInfo& coveragePOI, |
- GrXPFactory::InvariantOutput* output) const { |
- if (SkRegion::kReplace_Op == fRegionOp) { |
- if (coveragePOI.isSolidWhite()) { |
- output->fBlendedColor = GrColor_WHITE; |
- output->fBlendedColorFlags = kRGBA_GrColorComponentFlags; |
- } else { |
- output->fBlendedColorFlags = 0; |
- } |
- |
- output->fWillBlendWithDst = false; |
- } else { |
- output->fBlendedColorFlags = 0; |
- output->fWillBlendWithDst = true; |
- } |
+void GrCoverageSetOpXPFactory::getInvariantBlendedColor(const GrProcOptInfo& colorPOI, |
+ InvariantBlendedColor* blendedColor) const { |
+ blendedColor->fWillBlendWithDst = SkRegion::kReplace_Op != fRegionOp; |
+ blendedColor->fKnownColorFlags = kNone_GrColorComponentFlags; |
} |
GR_DEFINE_XP_FACTORY_TEST(GrCoverageSetOpXPFactory); |