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 1641273003: Support decoding opaque to *premul (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update SkMaskSwizzler to support opaque to premul Created 4 years, 10 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
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 "SkColorTable.h" 9 #include "SkColorTable.h"
10 #include "SkImageInfo.h" 10 #include "SkImageInfo.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 */ 57 */
58 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, 58 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&,
59 SkPMColor*, int*, int*) override; 59 SkPMColor*, int*, int*) override;
60 60
61 SkEncodedFormat onGetEncodedFormat() const override { 61 SkEncodedFormat onGetEncodedFormat() const override {
62 return kGIF_SkEncodedFormat; 62 return kGIF_SkEncodedFormat;
63 } 63 }
64 64
65 bool onRewind() override; 65 bool onRewind() override;
66 66
67 uint32_t onGetFillValue(SkColorType colorType, SkAlphaType alphaType) const override; 67 uint32_t onGetFillValue(SkColorType) const override;
68 68
69 int onOutputScanline(int inputScanline) const override; 69 int onOutputScanline(int inputScanline) const override;
70 70
71 private: 71 private:
72 72
73 /* 73 /*
74 * A gif can contain multiple image frames. We will only decode the first 74 * A gif can contain multiple image frames. We will only decode the first
75 * frame. This function reads up to the first image frame, processing 75 * frame. This function reads up to the first image frame, processing
76 * transparency and/or animation information that comes before the image 76 * transparency and/or animation information that comes before the image
77 * data. 77 * data.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 SkAutoTDeleteArray<uint8_t> fSrcBuffer; 194 SkAutoTDeleteArray<uint8_t> fSrcBuffer;
195 const SkIRect fFrameRect; 195 const SkIRect fFrameRect;
196 const uint32_t fTransIndex; 196 const uint32_t fTransIndex;
197 uint32_t fFillIndex; 197 uint32_t fFillIndex;
198 const bool fFrameIsSubset; 198 const bool fFrameIsSubset;
199 SkAutoTDelete<SkSwizzler> fSwizzler; 199 SkAutoTDelete<SkSwizzler> fSwizzler;
200 SkAutoTUnref<SkColorTable> fColorTable; 200 SkAutoTUnref<SkColorTable> fColorTable;
201 201
202 typedef SkCodec INHERITED; 202 typedef SkCodec INHERITED;
203 }; 203 };
OLDNEW
« no previous file with comments | « src/codec/SkCodecPriv.h ('k') | src/codec/SkGifCodec.cpp » ('j') | src/codec/SkMaskSwizzler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698