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

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

Issue 2335203002: Implement Fill() for incomplete decodes to RGBA_F16 (Closed)
Patch Set: Fix win builds Created 4 years, 3 months 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/SkCodecPriv.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 "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
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
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 };
OLDNEW
« no previous file with comments | « src/codec/SkCodecPriv.h ('k') | src/codec/SkGifCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698