Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/codec/SkGifCodec.h

Issue 2447863002: Report repetition count in SkCodec (Closed)
Patch Set: Make colorTables.gif use a different loop count Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/codec/SkCodecAnimation.h ('k') | src/codec/SkGifCodec.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « src/codec/SkCodecAnimation.h ('k') | src/codec/SkGifCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698