Index: src/gpu/GrRenderTarget.cpp |
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp |
index 4bb01432cec6f0937f4bf9d1f9659917c1f6e832..e81a9cfd8382700485dc6f98463d9301b81e6e79 100644 |
--- a/src/gpu/GrRenderTarget.cpp |
+++ b/src/gpu/GrRenderTarget.cpp |
@@ -22,12 +22,12 @@ void GrRenderTarget::discard() { |
return; |
} |
- SkAutoTUnref<GrDrawContext> drawContext(context->drawContext()); |
+ SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(this)); |
if (!drawContext) { |
return; |
} |
- drawContext->discard(this); |
+ drawContext->discard(); |
} |
void GrRenderTarget::flagAsNeedingResolve(const SkIRect* rect) { |