Chromium Code Reviews| Index: src/pdf/SkDeflate.h |
| diff --git a/src/pdf/SkDeflate.h b/src/pdf/SkDeflate.h |
| index 0104c4514d5ac0bef0baa4184085067d0c9af8fb..e23e142729041a56f188c6559982060a5744cbe6 100644 |
| --- a/src/pdf/SkDeflate.h |
| +++ b/src/pdf/SkDeflate.h |
| @@ -13,36 +13,12 @@ |
| #include "SkTypes.h" |
| #include "SkStream.h" |
| -class SkData; |
| -/** \class SkFlate |
| - A class to provide access to the flate compression algorithm. |
| -*/ |
| -class SkFlate { |
| -public: |
| - /** |
| - * 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. |
| - */ |
| - static bool Inflate(SkStream* src, SkWStream* dst); |
| -}; |
| +/** |
| + * Use the un-deflate compression algorithm to decompress the data in src, |
| + * returning the result. Returns NULL if an error occurs. |
| + */ |
| +SkStreamAsset* SkInflate(SkStream* src); |
|
mtklein_C
2015/08/18 19:33:09
If only used for testing, let's move it out of src
hal.canary
2015/08/18 20:06:23
Done.
Moved to tests/PDFDeflateWStreamTest.cpp
|
| /** |
| * Wrap a stream in this class to compress the information written to |