| 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 #include "SkData.h" | 9 #include "SkData.h" |
| 10 #include "SkDeflate.h" | 10 #include "SkDeflate.h" |
| 11 #include "SkStream.h" | |
| 12 | 11 |
| 13 #ifdef ZLIB_INCLUDE | 12 #ifdef ZLIB_INCLUDE |
| 14 #include ZLIB_INCLUDE | 13 #include ZLIB_INCLUDE |
| 15 #else | 14 #else |
| 16 #include "zlib.h" | 15 #include "zlib.h" |
| 17 #endif | 16 #endif |
| 18 | 17 |
| 19 namespace { | 18 namespace { |
| 20 | 19 |
| 21 // Different zlib implementations use different T. | 20 // Different zlib implementations use different T. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 fImpl->fInBuffer, fImpl->fInBufferIndex); | 115 fImpl->fInBuffer, fImpl->fInBufferIndex); |
| 117 fImpl->fInBufferIndex = 0; | 116 fImpl->fInBufferIndex = 0; |
| 118 } | 117 } |
| 119 } | 118 } |
| 120 return true; | 119 return true; |
| 121 } | 120 } |
| 122 | 121 |
| 123 size_t SkDeflateWStream::bytesWritten() const { | 122 size_t SkDeflateWStream::bytesWritten() const { |
| 124 return fImpl->fZStream.total_in + fImpl->fInBufferIndex; | 123 return fImpl->fZStream.total_in + fImpl->fInBufferIndex; |
| 125 } | 124 } |
| OLD | NEW |