diff options
Diffstat (limited to 'src/effects/SkXfermodeImageFilter.cpp')
-rw-r--r-- | src/effects/SkXfermodeImageFilter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp index 2311bb75f4..e443a008aa 100644 --- a/src/effects/SkXfermodeImageFilter.cpp +++ b/src/effects/SkXfermodeImageFilter.cpp @@ -197,13 +197,12 @@ bool SkXfermodeImageFilter::filterImageGPU(Proxy* proxy, paint.addColorFragmentProcessor(xferFP)->unref(); } - SkAutoTUnref<GrDrawContext> drawContext(context->drawContext()); + SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(dst->asRenderTarget())); if (!drawContext) { return false; } - drawContext->drawRect(dst->asRenderTarget(), GrClip::WideOpen(), paint, - SkMatrix::I(), srcRect); + drawContext->drawRect(GrClip::WideOpen(), paint, SkMatrix::I(), srcRect); offset->fX = backgroundOffset.fX; offset->fY = backgroundOffset.fY; |