| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | 8 |
| 10 #include "SkData.h" | 9 #include "SkData.h" |
| 11 #include "SkDeflate.h" | 10 #include "SkDeflate.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 fImpl->fInBuffer, fImpl->fInBufferIndex); | 116 fImpl->fInBuffer, fImpl->fInBufferIndex); |
| 118 fImpl->fInBufferIndex = 0; | 117 fImpl->fInBufferIndex = 0; |
| 119 } | 118 } |
| 120 } | 119 } |
| 121 return true; | 120 return true; |
| 122 } | 121 } |
| 123 | 122 |
| 124 size_t SkDeflateWStream::bytesWritten() const { | 123 size_t SkDeflateWStream::bytesWritten() const { |
| 125 return fImpl->fZStream.total_in + fImpl->fInBufferIndex; | 124 return fImpl->fZStream.total_in + fImpl->fInBufferIndex; |
| 126 } | 125 } |
| OLD | NEW |