Index: include/gpu/GrContext.h |
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h |
index b79ab640a4a9e8889d36d43407df7da01d75efc3..91ae2d1001f64a06fae5bfd932d59d059cdd5f45 100644 |
--- a/include/gpu/GrContext.h |
+++ b/include/gpu/GrContext.h |
@@ -175,12 +175,13 @@ public: |
* Callers should take a ref if they rely on the GrDrawContext sticking around. |
* NULL will be returned if the context has been abandoned. |
* |
+ * @param rt the render target receiving the draws |
* @param surfaceProps the surface properties (mainly defines text drawing) |
* |
* @return a draw context |
*/ |
- GrDrawContext* drawContext(const SkSurfaceProps* surfaceProps = NULL) { |
- return fDrawingMgr.drawContext(surfaceProps); |
+ GrDrawContext* drawContext(GrRenderTarget* rt, const SkSurfaceProps* surfaceProps = NULL) { |
+ return fDrawingMgr.drawContext(rt, surfaceProps); |
} |
GrTextContext* textContext(const SkSurfaceProps& surfaceProps, GrRenderTarget* rt) { |
@@ -441,7 +442,7 @@ private: |
// Callers assume the creation ref of the drawContext! |
// NULL will be returned if the context has been abandoned. |
- GrDrawContext* drawContext(const SkSurfaceProps* surfaceProps); |
+ GrDrawContext* drawContext(GrRenderTarget* rt, const SkSurfaceProps* surfaceProps); |
GrTextContext* textContext(const SkSurfaceProps& props, GrRenderTarget* rt); |