| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 */ | 59 */ |
| 60 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, | 60 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, |
| 61 SkPMColor*, int*, int*) override; | 61 SkPMColor*, int*, int*) override; |
| 62 | 62 |
| 63 SkEncodedFormat onGetEncodedFormat() const override { | 63 SkEncodedFormat onGetEncodedFormat() const override { |
| 64 return kGIF_SkEncodedFormat; | 64 return kGIF_SkEncodedFormat; |
| 65 } | 65 } |
| 66 | 66 |
| 67 bool onRewind() override; | 67 bool onRewind() override; |
| 68 | 68 |
| 69 uint32_t onGetFillValue(SkColorType) const override; | 69 uint64_t onGetFillValue(const SkImageInfo&) const override; |
| 70 | 70 |
| 71 int onOutputScanline(int inputScanline) const override; | 71 int onOutputScanline(int inputScanline) const override; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 | 74 |
| 75 /* | 75 /* |
| 76 * A gif can contain multiple image frames. We will only decode the first | 76 * A gif can contain multiple image frames. We will only decode the first |
| 77 * frame. This function reads up to the first image frame, processing | 77 * frame. This function reads up to the first image frame, processing |
| 78 * transparency and/or animation information that comes before the image | 78 * transparency and/or animation information that comes before the image |
| 79 * data. | 79 * data. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |