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 "SkCodecAnimation.h" | 9 #include "SkCodecAnimation.h" |
10 #include "SkColorSpace.h" | 10 #include "SkColorSpace.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 SkPMColor*, int*, int*) override; | 41 SkPMColor*, int*, int*) override; |
42 | 42 |
43 SkEncodedFormat onGetEncodedFormat() const override { | 43 SkEncodedFormat onGetEncodedFormat() const override { |
44 return kGIF_SkEncodedFormat; | 44 return kGIF_SkEncodedFormat; |
45 } | 45 } |
46 | 46 |
47 bool onRewind() override; | 47 bool onRewind() override; |
48 | 48 |
49 uint64_t onGetFillValue(const SkImageInfo&) const override; | 49 uint64_t onGetFillValue(const SkImageInfo&) const override; |
50 | 50 |
51 std::vector<FrameInfo> onGetFrameInfo() override; | 51 std::vector<FrameInfo> onGetFrameInfo(int*) override; |
52 | 52 |
53 Result onStartIncrementalDecode(const SkImageInfo& /*dstInfo*/, void*, size_
t, | 53 Result onStartIncrementalDecode(const SkImageInfo& /*dstInfo*/, void*, size_
t, |
54 const SkCodec::Options&, SkPMColor*, int*) override; | 54 const SkCodec::Options&, SkPMColor*, int*) override; |
55 | 55 |
56 Result onIncrementalDecode(int*) override; | 56 Result onIncrementalDecode(int*) override; |
57 | 57 |
58 private: | 58 private: |
59 | 59 |
60 /* | 60 /* |
61 * Initializes the color table that we will use for decoding. | 61 * Initializes the color table that we will use for decoding. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 void* fDst; | 149 void* fDst; |
150 size_t fDstRowBytes; | 150 size_t fDstRowBytes; |
151 | 151 |
152 // Updated inside haveDecodedRow when rows are decoded, unless we filled | 152 // Updated inside haveDecodedRow when rows are decoded, unless we filled |
153 // the background, in which case it is set once and left alone. | 153 // the background, in which case it is set once and left alone. |
154 int fRowsDecoded; | 154 int fRowsDecoded; |
155 | 155 |
156 typedef SkCodec INHERITED; | 156 typedef SkCodec INHERITED; |
157 }; | 157 }; |
OLD | NEW |