| Index: include/gpu/effects/GrPorterDuffXferProcessor.h
|
| diff --git a/include/gpu/effects/GrPorterDuffXferProcessor.h b/include/gpu/effects/GrPorterDuffXferProcessor.h
|
| index f8fc1a38ccb76b7aafcdcbbc5c3986a9e4a55aa4..e4f72203f64a83447c24872838fe669005c5cbd9 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 GrCaps& caps,
|
| const GrProcOptInfo& colorPOI,
|
| @@ -37,14 +37,15 @@ 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;
|
| + static void TestGetXPOutputTypes(const GrXferProcessor*, int* outPrimary, int* outSecondary);
|
|
|
| - GrBlendCoeff fSrcCoeff;
|
| - GrBlendCoeff fDstCoeff;
|
| + SkXfermode::Mode fXfermode;
|
|
|
| + friend class GrPorterDuffTest; // for TestGetXPOutputTypes()
|
| typedef GrXPFactory INHERITED;
|
| };
|
|
|
|
|