Index: include/core/SkSurface.h |
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h |
index 57527ed33afa1640c44755737f48cd514fb913d5..c94609ca1ce64d6e07ab495978195ba3893e8d10 100644 |
--- a/include/core/SkSurface.h |
+++ b/include/core/SkSurface.h |
@@ -113,12 +113,14 @@ public: |
/** |
* Return a new surface whose contents will be drawn to an offscreen |
* render target, allocated by the surface. |
+ * |
+ * |customAllocator|, if present, must be an instance of TextureStorageAllocator. |
*/ |
static SkSurface* NewRenderTarget(GrContext*, Budgeted, const SkImageInfo&, int sampleCount, |
- const SkSurfaceProps* = NULL); |
+ const SkSurfaceProps* = NULL, void* customAllocator = NULL); |
erikchen
2016/01/26 18:36:16
I wasn't sure what type of interface you wanted. I
bsalomon
2016/01/26 22:20:54
Why not just pass GrTextureStorageAllocator* here?
erikchen
2016/01/27 21:55:14
Oops, fixed.
|
static SkSurface* NewRenderTarget(GrContext* gr, Budgeted b, const SkImageInfo& info) { |
- return NewRenderTarget(gr, b, info, 0, NULL); |
+ return NewRenderTarget(gr, b, info, 0, NULL, NULL); |
} |
int width() const { return fWidth; } |