Index: include/gpu/effects/GrPorterDuffXferProcessor.h |
diff --git a/include/gpu/effects/GrPorterDuffXferProcessor.h b/include/gpu/effects/GrPorterDuffXferProcessor.h |
index 56ddb372b4776a932e6f174f4a7c1de886a63094..481b373c10ac6a8170d43469b60a3b768f77b55c 100644 |
--- a/include/gpu/effects/GrPorterDuffXferProcessor.h |
+++ b/include/gpu/effects/GrPorterDuffXferProcessor.h |
@@ -24,7 +24,7 @@ |
GrXPFactory::InvariantOutput*) const override; |
private: |
- GrPorterDuffXPFactory(SkXfermode::Mode); |
+ GrPorterDuffXPFactory(GrBlendCoeff src, GrBlendCoeff dst); |
GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, |
const GrProcOptInfo& colorPOI, |
@@ -37,15 +37,14 @@ |
bool onIsEqual(const GrXPFactory& xpfBase) const override { |
const GrPorterDuffXPFactory& xpf = xpfBase.cast<GrPorterDuffXPFactory>(); |
- return fXfermode == xpf.fXfermode; |
+ return (fSrcCoeff == xpf.fSrcCoeff && fDstCoeff == xpf.fDstCoeff); |
} |
GR_DECLARE_XP_FACTORY_TEST; |
- static void TestGetXPOutputTypes(const GrXferProcessor*, int* outPrimary, int* outSecondary); |
- SkXfermode::Mode fXfermode; |
+ GrBlendCoeff fSrcCoeff; |
+ GrBlendCoeff fDstCoeff; |
- friend class GrPorterDuffTest; // for TestGetXPOutputTypes() |
typedef GrXPFactory INHERITED; |
}; |