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

Unified Diff: src/effects/SkArithmeticMode_gpu.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/effects/SkArithmeticMode_gpu.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkArithmeticMode_gpu.cpp
diff --git a/src/effects/SkArithmeticMode_gpu.cpp b/src/effects/SkArithmeticMode_gpu.cpp
index 3b815e5210a99631d3a7024517e261b60e004cca..d0dd98b3657e01c20919e573765a19c6e314c4e3 100644
--- a/src/effects/SkArithmeticMode_gpu.cpp
+++ b/src/effects/SkArithmeticMode_gpu.cpp
@@ -306,15 +306,14 @@ 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,
+ 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);
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698