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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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() override; |
| 52 int onGetRepetitionCount() override; |
52 | 53 |
53 Result onStartIncrementalDecode(const SkImageInfo& /*dstInfo*/, void*, size_
t, | 54 Result onStartIncrementalDecode(const SkImageInfo& /*dstInfo*/, void*, size_
t, |
54 const SkCodec::Options&, SkPMColor*, int*) override; | 55 const SkCodec::Options&, SkPMColor*, int*) override; |
55 | 56 |
56 Result onIncrementalDecode(int*) override; | 57 Result onIncrementalDecode(int*) override; |
57 | 58 |
58 private: | 59 private: |
59 | 60 |
60 /* | 61 /* |
61 * Initializes the color table that we will use for decoding. | 62 * Initializes the color table that we will use for decoding. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 138 |
138 void* fDst; | 139 void* fDst; |
139 size_t fDstRowBytes; | 140 size_t fDstRowBytes; |
140 | 141 |
141 // Updated inside haveDecodedRow when rows are decoded, unless we filled | 142 // Updated inside haveDecodedRow when rows are decoded, unless we filled |
142 // the background, in which case it is set once and left alone. | 143 // the background, in which case it is set once and left alone. |
143 int fRowsDecoded; | 144 int fRowsDecoded; |
144 | 145 |
145 typedef SkCodec INHERITED; | 146 typedef SkCodec INHERITED; |
146 }; | 147 }; |
OLD | NEW |