Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 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 #ifndef SkCodec_DEFINED | 8 #ifndef SkCodec_DEFINED |
| 9 #define SkCodec_DEFINED | 9 #define SkCodec_DEFINED |
| 10 | 10 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 170 | 170 |
| 171 /* | 171 /* |
| 172 * | 172 * |
| 173 * Get method for the input stream | 173 * Get method for the input stream |
| 174 * | 174 * |
| 175 */ | 175 */ |
| 176 SkStream* stream() { | 176 SkStream* stream() { |
| 177 return fStream.get(); | 177 return fStream.get(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 /* | |
| 181 * | |
| 182 * Get method for the scanline decoder | |
|
reed1
2015/06/29 21:21:49
nit: lets have the comment be slightly more useful
msarett
2015/06/29 21:59:43
Done.
| |
| 183 * | |
| 184 */ | |
| 185 SkScanlineDecoder* scanlineDecoder() { | |
| 186 return fScanlineDecoder.get(); | |
| 187 } | |
| 188 | |
| 180 private: | 189 private: |
| 181 SkAutoTDelete<SkStream> fStream; | 190 SkAutoTDelete<SkStream> fStream; |
| 182 bool fNeedsRewind; | 191 bool fNeedsRewind; |
| 183 SkAutoTDelete<SkScanlineDecoder> fScanlineDecoder; | 192 SkAutoTDelete<SkScanlineDecoder> fScanlineDecoder; |
| 184 | 193 |
| 185 typedef SkImageGenerator INHERITED; | 194 typedef SkImageGenerator INHERITED; |
| 186 }; | 195 }; |
| 187 #endif // SkCodec_DEFINED | 196 #endif // SkCodec_DEFINED |
| OLD | NEW |