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

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: 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
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);

Powered by Google App Engine
This is Rietveld 408576698