| Index: src/effects/SkAlphaThresholdFilter.cpp
|
| diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
|
| index 82f6ea43bb9ae431090f3b81d6b0a92cc6637e38..c838d5af45a37903bfcacd3ebaf32e543e0bc8ad 100644
|
| --- a/src/effects/SkAlphaThresholdFilter.cpp
|
| +++ b/src/effects/SkAlphaThresholdFilter.cpp
|
| @@ -287,7 +287,7 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp,
|
| return false;
|
| }
|
|
|
| - GrDrawContext* drawContext = context->drawContext();
|
| + GrDrawContext* drawContext = context->drawContext(maskTexture->asRenderTarget());
|
| if (drawContext) {
|
| GrPaint grPaint;
|
| grPaint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode);
|
| @@ -302,6 +302,8 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp,
|
| }
|
| }
|
|
|
| + // TODO: whoever uses the resulting 'fp' needs to "use" the correct
|
| + // drawContext
|
| *fp = AlphaThresholdEffect::Create(texture,
|
| maskTexture,
|
| fInnerThreshold,
|
|
|