diff options
Diffstat (limited to 'src/gpu/effects/GrPorterDuffXferProcessor.h')
-rw-r--r-- | src/gpu/effects/GrPorterDuffXferProcessor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.h b/src/gpu/effects/GrPorterDuffXferProcessor.h index b82c1068ff..dd790e8431 100644 --- a/src/gpu/effects/GrPorterDuffXferProcessor.h +++ b/src/gpu/effects/GrPorterDuffXferProcessor.h @@ -38,9 +38,8 @@ public: static const GrXferProcessor& SimpleSrcOverXP(); static bool WillSrcOverReadDst(const FragmentProcessorAnalysis& analysis); - static bool IsSrcOverPreCoverageBlendedColorConstant(const GrProcOptInfo& colorInput, - GrColor* color); static bool WillSrcOverNeedDstTexture(const GrCaps&, const FragmentProcessorAnalysis&); + static bool SrcOverIsCompatibleWithCoverageAsAlpha() { return true; } private: constexpr GrPorterDuffXPFactory(SkBlendMode); @@ -54,6 +53,8 @@ private: bool willReadDstInShader(const GrCaps&, const FragmentProcessorAnalysis&) const override; + bool compatibleWithCoverageAsAlpha(bool colorIsOpaque) const override; + GR_DECLARE_XP_FACTORY_TEST; static void TestGetXPOutputTypes(const GrXferProcessor*, int* outPrimary, int* outSecondary); |