Index: include/gpu/effects/GrPorterDuffXferProcessor.h |
diff --git a/include/gpu/effects/GrPorterDuffXferProcessor.h b/include/gpu/effects/GrPorterDuffXferProcessor.h |
index d47fc0f8cc9f6c8c33292b7807e711ae1a854443..2628f4ed872fa46e7bc9bc2bfd874b1e55886e88 100644 |
--- a/include/gpu/effects/GrPorterDuffXferProcessor.h |
+++ b/include/gpu/effects/GrPorterDuffXferProcessor.h |
@@ -24,7 +24,7 @@ public: |
GrXPFactory::InvariantOutput*) const override; |
private: |
- GrPorterDuffXPFactory(GrBlendCoeff src, GrBlendCoeff dst); |
+ GrPorterDuffXPFactory(SkXfermode::Mode); |
GrXferProcessor* onCreateXferProcessor(const GrDrawTargetCaps& caps, |
const GrProcOptInfo& colorPOI, |
@@ -37,13 +37,12 @@ private: |
bool onIsEqual(const GrXPFactory& xpfBase) const override { |
const GrPorterDuffXPFactory& xpf = xpfBase.cast<GrPorterDuffXPFactory>(); |
- return (fSrcCoeff == xpf.fSrcCoeff && fDstCoeff == xpf.fDstCoeff); |
+ return fXfermode == xpf.fXfermode; |
} |
GR_DECLARE_XP_FACTORY_TEST; |
- GrBlendCoeff fSrcCoeff; |
- GrBlendCoeff fDstCoeff; |
+ SkXfermode::Mode fXfermode; |
typedef GrXPFactory INHERITED; |
}; |