Index: include/core/SkSurface.h |
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h |
index 57527ed33afa1640c44755737f48cd514fb913d5..19b03fc67d4ab3704122f8594ae2727c738790fe 100644 |
--- a/include/core/SkSurface.h |
+++ b/include/core/SkSurface.h |
@@ -61,12 +61,17 @@ public: |
void* context, const SkSurfaceProps* = NULL); |
/** |
- * Return a new surface, with the memory for the pixels automatically |
- * allocated. |
+ * Return a new surface, with the memory for the pixels automatically allocated, but respecting |
+ * the specified rowBytes. If rowBytes==0, then a default value will be chosen. |
* |
* If the requested surface cannot be created, or the request is not a |
* supported configuration, NULL will be returned. |
*/ |
+ static SkSurface* NewRaster(const SkImageInfo&, size_t rowBytes, const SkSurfaceProps*); |
+ |
+ /** |
+ * Allocate a new surface, automatically computing the rowBytes. |
+ */ |
static SkSurface* NewRaster(const SkImageInfo&, const SkSurfaceProps* = NULL); |
/** |