diff options
Diffstat (limited to 'include/core/SkData.h')
-rw-r--r-- | include/core/SkData.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkData.h b/include/core/SkData.h index 9a0cb09b60..6b09119fc5 100644 --- a/include/core/SkData.h +++ b/include/core/SkData.h @@ -89,6 +89,12 @@ public: static SkData* NewFromMalloc(const void* data, size_t length); /** + * Create a new dataref from a pointer allocated by mmap. The Data object + * will handle calling munmap(). + */ + static SkData* NewFromMMap(const void* data, size_t length); + + /** * Create a new dataref using a subset of the data in the specified * src dataref. */ |