| 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" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 */ | 57 */ |
| 58 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, | 58 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, |
| 59 SkPMColor*, int*, int*) override; | 59 SkPMColor*, int*, int*) override; |
| 60 | 60 |
| 61 SkEncodedFormat onGetEncodedFormat() const override { | 61 SkEncodedFormat onGetEncodedFormat() const override { |
| 62 return kGIF_SkEncodedFormat; | 62 return kGIF_SkEncodedFormat; |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool onRewind() override; | 65 bool onRewind() override; |
| 66 | 66 |
| 67 uint32_t onGetFillValue(SkColorType colorType, SkAlphaType alphaType) const
override; | 67 uint32_t onGetFillValue(SkColorType) const override; |
| 68 | 68 |
| 69 int onOutputScanline(int inputScanline) const override; | 69 int onOutputScanline(int inputScanline) const override; |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 | 72 |
| 73 /* | 73 /* |
| 74 * A gif can contain multiple image frames. We will only decode the first | 74 * A gif can contain multiple image frames. We will only decode the first |
| 75 * frame. This function reads up to the first image frame, processing | 75 * frame. This function reads up to the first image frame, processing |
| 76 * transparency and/or animation information that comes before the image | 76 * transparency and/or animation information that comes before the image |
| 77 * data. | 77 * data. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 SkAutoTDeleteArray<uint8_t> fSrcBuffer; | 194 SkAutoTDeleteArray<uint8_t> fSrcBuffer; |
| 195 const SkIRect fFrameRect; | 195 const SkIRect fFrameRect; |
| 196 const uint32_t fTransIndex; | 196 const uint32_t fTransIndex; |
| 197 uint32_t fFillIndex; | 197 uint32_t fFillIndex; |
| 198 const bool fFrameIsSubset; | 198 const bool fFrameIsSubset; |
| 199 SkAutoTDelete<SkSwizzler> fSwizzler; | 199 SkAutoTDelete<SkSwizzler> fSwizzler; |
| 200 SkAutoTUnref<SkColorTable> fColorTable; | 200 SkAutoTUnref<SkColorTable> fColorTable; |
| 201 | 201 |
| 202 typedef SkCodec INHERITED; | 202 typedef SkCodec INHERITED; |
| 203 }; | 203 }; |
| OLD | NEW |