Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: src/core/SkFlate.h

Issue 1285913002: SkPDF: Move SkFlate into src/pdf (part 1/3) [reland] (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-12 (Wednesday) 13:09:57 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/skflate.gyp ('k') | src/core/SkFlate.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkFlate.h
diff --git a/src/core/SkFlate.h b/src/core/SkFlate.h
index 0104c4514d5ac0bef0baa4184085067d0c9af8fb..9c9f5fcbc609e3cd05e0e415ea22e45633889b8d 100644
--- a/src/core/SkFlate.h
+++ b/src/core/SkFlate.h
@@ -5,71 +5,3 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-
-
-#ifndef SkFlate_DEFINED
-#define SkFlate_DEFINED
-
-#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);
-};
-
-/**
- * Wrap a stream in this class to compress the information written to
- * this stream using the Deflate algorithm. Uses Zlib's
- * Z_DEFAULT_COMPRESSION level.
- *
- * See http://en.wikipedia.org/wiki/DEFLATE
- */
-class SkDeflateWStream : public SkWStream {
-public:
- /** Does not take ownership of the stream. */
- SkDeflateWStream(SkWStream*);
-
- /** The destructor calls finalize(). */
- ~SkDeflateWStream();
-
- /** Write the end of the compressed stream. All subsequent calls to
- write() will fail. Subsequent calls to finalize() do nothing. */
- void finalize();
-
- // The SkWStream interface:
- bool write(const void*, size_t) override;
- size_t bytesWritten() const override;
-
-private:
- struct Impl;
- SkAutoTDelete<Impl> fImpl;
-};
-
-#endif // SkFlate_DEFINED
« no previous file with comments | « gyp/skflate.gyp ('k') | src/core/SkFlate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698