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 #include "SkCodec.h" | 8 #include "SkCodec.h" |
9 #include "SkColorSpace.h" | 9 #include "SkColorSpace.h" |
10 #include "SkColorTable.h" | 10 #include "SkColorTable.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 * Creates an instance of the decoder | 182 * Creates an instance of the decoder |
183 * Called only by NewFromStream | 183 * Called only by NewFromStream |
184 * | 184 * |
185 * @param srcInfo contains the source width and height | 185 * @param srcInfo contains the source width and height |
186 * @param stream the stream of image data | 186 * @param stream the stream of image data |
187 * @param gif pointer to library type that manages gif decode | 187 * @param gif pointer to library type that manages gif decode |
188 * takes ownership | 188 * takes ownership |
189 * @param transIndex The transparent index. An invalid value | 189 * @param transIndex The transparent index. An invalid value |
190 * indicates that there is no transparent index. | 190 * indicates that there is no transparent index. |
191 */ | 191 */ |
192 SkGifCodec(const SkImageInfo& srcInfo, SkStream* stream, GifFileType* gif, u
int32_t transIndex, | 192 SkGifCodec(const SkEncodedInfo& srcInfo, SkStream* stream, GifFileType* gif, |
193 const SkIRect& frameRect, bool frameIsSubset); | 193 uint32_t transIndex, const SkIRect& frameRect, bool frameIsSubset); |
194 | 194 |
195 SkAutoTCallVProc<GifFileType, CloseGif> fGif; // owned | 195 SkAutoTCallVProc<GifFileType, CloseGif> fGif; // owned |
196 SkAutoTDeleteArray<uint8_t> fSrcBuffer; | 196 SkAutoTDeleteArray<uint8_t> fSrcBuffer; |
197 const SkIRect fFrameRect; | 197 const SkIRect fFrameRect; |
198 const uint32_t fTransIndex; | 198 const uint32_t fTransIndex; |
199 uint32_t fFillIndex; | 199 uint32_t fFillIndex; |
200 const bool fFrameIsSubset; | 200 const bool fFrameIsSubset; |
201 SkAutoTDelete<SkSwizzler> fSwizzler; | 201 SkAutoTDelete<SkSwizzler> fSwizzler; |
202 SkAutoTUnref<SkColorTable> fColorTable; | 202 SkAutoTUnref<SkColorTable> fColorTable; |
203 | 203 |
204 typedef SkCodec INHERITED; | 204 typedef SkCodec INHERITED; |
205 }; | 205 }; |
OLD | NEW |