Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: src/gpu/effects/GrCoverageSetOpXP.cpp

Issue 1161273005: Update XPF invariant info to not account for conflation (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_reenablebea
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrProcOptInfo.h ('k') | src/gpu/effects/GrCustomXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/gpu/GrProcOptInfo.h ('k') | src/gpu/effects/GrCustomXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698