diff options
author | egdaniel <egdaniel@google.com> | 2014-12-08 11:20:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-08 11:20:40 -0800 |
commit | 7c66342a399b529634bed0fabfaa562db2c0dbd4 (patch) | |
tree | 1acf634452770b9ef66d8a1422748422062ec9d6 /src/effects/SkAlphaThresholdFilter.cpp | |
parent | a2bd24fd15378d0a25d79b4aa2d76dddc4cf564c (diff) |
Make all blending up to GrOptDrawState be handled by the xp/xp factory.
In this cl the blending information is extracted for the xp and stored in the ODS
which is then used as it currently is. In the follow up cl, an XP backend will be added
and at that point all blending work will take place inside XP's.
BUG=skia:
Review URL: https://codereview.chromium.org/759713002
Diffstat (limited to 'src/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r-- | src/effects/SkAlphaThresholdFilter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp index 6f9fefce1b..13a745efe0 100644 --- a/src/effects/SkAlphaThresholdFilter.cpp +++ b/src/effects/SkAlphaThresholdFilter.cpp @@ -48,6 +48,7 @@ SkImageFilter* SkAlphaThresholdFilter::Create(const SkRegion& region, #include "GrFragmentProcessor.h" #include "GrInvariantOutput.h" #include "GrTextureAccess.h" +#include "effects/GrPorterDuffXferProcessor.h" #include "SkGr.h" @@ -281,7 +282,7 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp, { GrContext::AutoRenderTarget art(context, maskTexture->asRenderTarget()); GrPaint grPaint; - grPaint.setBlendFunc(kOne_GrBlendCoeff, kZero_GrBlendCoeff); + grPaint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); SkRegion::Iterator iter(fRegion); context->clear(NULL, 0x0, true, maskTexture->asRenderTarget()); |