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 "SkColorTable.h" | 9 #include "SkColorTable.h" |
10 #include "SkImageInfo.h" | 10 #include "SkImageInfo.h" |
11 #include "SkSwizzler.h" | 11 #include "SkSwizzler.h" |
12 | 12 |
13 #include "gif_lib.h" | 13 struct GifFileType; |
| 14 struct SavedImage; |
14 | 15 |
15 /* | 16 /* |
16 * | 17 * |
17 * This class implements the decoding for gif images | 18 * This class implements the decoding for gif images |
18 * | 19 * |
19 */ | 20 */ |
20 class SkGifCodec : public SkCodec { | 21 class SkGifCodec : public SkCodec { |
21 public: | 22 public: |
22 static bool IsGif(const void*, size_t); | 23 static bool IsGif(const void*, size_t); |
23 | 24 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 SkAutoTDeleteArray<uint8_t> fSrcBuffer; | 195 SkAutoTDeleteArray<uint8_t> fSrcBuffer; |
195 const SkIRect fFrameRect; | 196 const SkIRect fFrameRect; |
196 const uint32_t fTransIndex; | 197 const uint32_t fTransIndex; |
197 uint32_t fFillIndex; | 198 uint32_t fFillIndex; |
198 const bool fFrameIsSubset; | 199 const bool fFrameIsSubset; |
199 SkAutoTDelete<SkSwizzler> fSwizzler; | 200 SkAutoTDelete<SkSwizzler> fSwizzler; |
200 SkAutoTUnref<SkColorTable> fColorTable; | 201 SkAutoTUnref<SkColorTable> fColorTable; |
201 | 202 |
202 typedef SkCodec INHERITED; | 203 typedef SkCodec INHERITED; |
203 }; | 204 }; |
OLD | NEW |