Index: include/core/SkSurface.h |
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h |
index d049d8c04091af757d948bbb6aed397f9702feb6..68d4702cb51d6f9bfdf8b73d01e1f2d5d3221094 100644 |
--- a/include/core/SkSurface.h |
+++ b/include/core/SkSurface.h |
@@ -38,6 +38,14 @@ public: |
static SkSurface* NewRasterDirect(const SkImageInfo&, void* pixels, size_t rowBytes); |
/** |
+ * The same as NewRasterDirect, but also accepts a call-back routine, which is invoked |
+ * when the surface is deleted, and is passed the pixel memory and the specified context. |
+ */ |
+ static SkSurface* NewRasterDirectReleaseProc(const SkImageInfo&, void* pixels, size_t rowBytes, |
+ void (*releaseProc)(void* pixels, void* context), |
+ void* context); |
+ |
+ /** |
* Return a new surface, with the memory for the pixels automatically |
* allocated. |
* |