Index: include/core/SkRegion.h |
diff --git a/include/core/SkRegion.h b/include/core/SkRegion.h |
index a088d546200be5211aff976fddc2118a1b392af1..83b6c04b4a417049ade3a97c8e636340990ccfab 100644 |
--- a/include/core/SkRegion.h |
+++ b/include/core/SkRegion.h |
@@ -362,12 +362,14 @@ public: |
* If buffer is NULL, it still returns the number of bytes. |
*/ |
uint32_t writeToMemory(void* buffer) const; |
- |
/** |
- * Initialized the region from the buffer, returning the number |
- * of bytes actually read. |
+ * Initializes the region from the buffer |
+ * |
+ * @param buffer Memory to read from |
+ * @param length Amount of memory available in the buffer |
+ * @return number of bytes read or 0 if there was not enough memory available |
*/ |
- uint32_t readFromMemory(const void* buffer); |
+ uint32_t readFromMemory(const void* buffer, uint32_t length); |
/** |
* Returns a reference to a global empty region. Just a convenience for |