OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #ifndef SkFlate_DEFINED | 9 #ifndef SkFlate_DEFINED |
10 #define SkFlate_DEFINED | 10 #define SkFlate_DEFINED |
11 | 11 |
12 #include "SkTypes.h" | |
13 | |
14 #include "SkStream.h" | 12 #include "SkStream.h" |
15 | 13 |
16 /** | 14 /** |
17 * Wrap a stream in this class to compress the information written to | 15 * Wrap a stream in this class to compress the information written to |
18 * this stream using the Deflate algorithm. | 16 * this stream using the Deflate algorithm. |
19 * | 17 * |
20 * See http://en.wikipedia.org/wiki/DEFLATE | 18 * See http://en.wikipedia.org/wiki/DEFLATE |
21 */ | 19 */ |
22 class SkDeflateWStream final : public SkWStream { | 20 class SkDeflateWStream final : public SkWStream { |
23 public: | 21 public: |
(...skipping 22 matching lines...) Expand all Loading... |
46 // The SkWStream interface: | 44 // The SkWStream interface: |
47 bool write(const void*, size_t) override; | 45 bool write(const void*, size_t) override; |
48 size_t bytesWritten() const override; | 46 size_t bytesWritten() const override; |
49 | 47 |
50 private: | 48 private: |
51 struct Impl; | 49 struct Impl; |
52 std::unique_ptr<Impl> fImpl; | 50 std::unique_ptr<Impl> fImpl; |
53 }; | 51 }; |
54 | 52 |
55 #endif // SkFlate_DEFINED | 53 #endif // SkFlate_DEFINED |
OLD | NEW |