diff options
author | 2011-06-27 17:41:22 +0000 | |
---|---|---|
committer | 2011-06-27 17:41:22 +0000 | |
commit | 314e9b3ba0b950b99e4d11e3302933014c35c3ed (patch) | |
tree | 035be6e65eb1344811eae37e59fbf70f29f5cef0 /include/core/SkFlate.h | |
parent | effc5016f040945a53ab0ea47f9ea02404c17805 (diff) |
add ptr/len and SkData versions of Deflate()
git-svn-id: http://skia.googlecode.com/svn/trunk@1726 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkFlate.h')
-rw-r--r-- | include/core/SkFlate.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/core/SkFlate.h b/include/core/SkFlate.h index ef76f68450..38f0fd1724 100644 --- a/include/core/SkFlate.h +++ b/include/core/SkFlate.h @@ -19,6 +19,7 @@ #include "SkTypes.h" +class SkData; class SkWStream; class SkStream; @@ -31,11 +32,24 @@ public: */ static bool HaveFlate(); - /** Use the flate compression algorithm to compress the data in src, - putting the result into dst. Returns false if an error occurs. + /** + * Use the flate compression algorithm to compress the data in src, + * putting the result into dst. Returns false if an error occurs. */ static bool Deflate(SkStream* src, SkWStream* dst); - + + /** + * Use the flate compression algorithm to compress the data in src, + * putting the result into dst. Returns false if an error occurs. + */ + static bool Deflate(const void* src, size_t len, SkWStream* dst); + + /** + * Use the flate compression algorithm to compress the data, + * putting the result into dst. Returns false if an error occurs. + */ + static bool Deflate(const SkData*, SkWStream* dst); + /** Use the flate compression algorithm to decompress the data in src, putting the result into dst. Returns false if an error occurs. */ |