| 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 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 /** Write the end of the compressed stream. All subsequent calls to | 42 /** Write the end of the compressed stream. All subsequent calls to |
| 43 write() will fail. Subsequent calls to finalize() do nothing. */ | 43 write() will fail. Subsequent calls to finalize() do nothing. */ |
| 44 void finalize(); | 44 void finalize(); |
| 45 | 45 |
| 46 // The SkWStream interface: | 46 // The SkWStream interface: |
| 47 bool write(const void*, size_t) override; | 47 bool write(const void*, size_t) override; |
| 48 size_t bytesWritten() const override; | 48 size_t bytesWritten() const override; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 struct Impl; | 51 struct Impl; |
| 52 SkAutoTDelete<Impl> fImpl; | 52 std::unique_ptr<Impl> fImpl; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 #endif // SkFlate_DEFINED | 55 #endif // SkFlate_DEFINED |
| OLD | NEW |