Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index 3f6ea9a12becd54e339ffa15970a7f421bc9d2f9..9c64dcae126eab529de52d903a1eb1eb4dcef1fd 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -355,10 +355,9 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont |
SkASSERT(fp); |
paint.addColorFragmentProcessor(fp)->unref(); |
- SkAutoTUnref<GrDrawContext> drawContext(context->drawContext()); |
+ SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(dst->asRenderTarget())); |
if (drawContext) { |
- drawContext->drawNonAARectToRect(dst->asRenderTarget(), clip, paint, SkMatrix::I(), |
- dstRect, srcRect); |
+ drawContext->drawNonAARectToRect(clip, paint, SkMatrix::I(), dstRect, srcRect); |
WrapTexture(dst, bounds.width(), bounds.height(), result); |
return true; |