Index: src/gpu/GrDrawContext.cpp |
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp |
index 48242e278f079dbedda890a360f69a1a8f33c0f3..e6bc55b6192ec860dee381e9f079e8b353cb18a5 100644 |
--- a/src/gpu/GrDrawContext.cpp |
+++ b/src/gpu/GrDrawContext.cpp |
@@ -980,6 +980,16 @@ void GrDrawContext::drawImageNine(const GrClip& clip, |
this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); |
} |
+void GrDrawContext::prepareForExternalIO() { |
+ ASSERT_SINGLE_OWNER |
+ RETURN_IF_ABANDONED |
+ SkDEBUGCODE(this->validate();) |
+ GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::prepareForExternalIO"); |
+ |
+ ASSERT_OWNED_RESOURCE(fRenderTarget); |
+ |
+ fDrawingManager->getContext()->prepareSurfaceForExternalIO(fRenderTarget.get()); |
+} |
void GrDrawContext::drawNonAAFilledRect(const GrClip& clip, |
const GrPaint& paint, |