Index: include/core/SkPixmap.h |
diff --git a/include/core/SkPixmap.h b/include/core/SkPixmap.h |
index 894b238196da95ca80e80ce992a0c6bffb24bb5e..3fbb64af9369250952350982b324aba3c3902019 100644 |
--- a/include/core/SkPixmap.h |
+++ b/include/core/SkPixmap.h |
@@ -211,6 +211,12 @@ public: |
void alloc(const SkImageInfo&); |
/** |
robertphillips
2016/03/08 18:43:10
rwo -> row ?
bsalomon
2016/03/08 19:49:31
Done.
|
+ * Gets the size and optionally the rwoBytes that would be allocated by SkAutoPixmapStorage if |
+ * alloc/tryAlloc was called. |
+ */ |
+ static size_t AllocSize(const SkImageInfo& info, size_t* rowBytes); |
+ |
+ /** |
* Returns an SkData object wrapping the allocated pixels memory, and resets the pixmap. |
* If the storage hasn't been allocated, the result is NULL. |
*/ |