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

Unified Diff: src/gpu/effects/GrCustomXfermode.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/gpu/effects/GrCustomXfermode.cpp
diff --git a/src/gpu/effects/GrCustomXfermode.cpp b/src/gpu/effects/GrCustomXfermode.cpp
index 295922391833ed25b2bd03072ab278d65d0410db..fc90409b365210664f03e87c7bbd7e177539c10c 100644
--- a/src/gpu/effects/GrCustomXfermode.cpp
+++ b/src/gpu/effects/GrCustomXfermode.cpp
@@ -809,11 +809,11 @@ bool GrCustomXPFactory::willReadDstColor(const GrCaps& caps,
return !can_use_hw_blend_equation(fHWBlendEquation, coveragePOI, caps);
}
-void GrCustomXPFactory::getInvariantOutput(const GrProcOptInfo& colorPOI,
- const GrProcOptInfo& coveragePOI,
- GrXPFactory::InvariantOutput* output) const {
- output->fWillBlendWithDst = true;
- output->fBlendedColorFlags = 0;
+void GrCustomXPFactory::getInvariantBlendedColor(const GrProcOptInfo& /*colorPOI*/,
bsalomon 2015/06/02 13:44:33 ditto
+ const GrProcOptInfo& /*coveragePOI*/,
+ InvariantBlendedColor* blendedColor) const {
+ blendedColor->fWillBlendWithDst = true;
+ blendedColor->fKnownColorFlags = kNone_GrColorComponentFlags;
}
GR_DEFINE_XP_FACTORY_TEST(GrCustomXPFactory);

Powered by Google App Engine
This is Rietveld 408576698