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

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

Issue 1390213002: Add subsetting to SkScanlineDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@fill-refactor
Patch Set: Rebase to manage dependencies Created 5 years, 2 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 */ 122 */
123 Result prepareToDecode(const SkImageInfo& dstInfo, SkPMColor* inputColorPtr, 123 Result prepareToDecode(const SkImageInfo& dstInfo, SkPMColor* inputColorPtr,
124 int* inputColorCount, const Options& opts); 124 int* inputColorCount, const Options& opts);
125 125
126 /* 126 /*
127 * Initializes the swizzler. 127 * Initializes the swizzler.
128 * 128 *
129 * @param dstInfo Output image information. Dimensions may have been 129 * @param dstInfo Output image information. Dimensions may have been
130 * adjusted if the image frame size does not match the size 130 * adjusted if the image frame size does not match the size
131 * indicated in the header. 131 * indicated in the header.
132 * @param zeroInit Indicates if destination memory is zero initialized. 132 * @param zeroInit Indicates if destination memory is zero initialized.
scroggo 2015/10/08 20:16:07 This comment is out of date.
msarett 2015/10/09 20:03:44 Done.
133 */ 133 */
134 Result initializeSwizzler(const SkImageInfo& dstInfo, ZeroInitialized zeroIn it); 134 Result initializeSwizzler(const SkImageInfo& dstInfo,
135 const Options& options);
135 136
136 SkSampler* getSampler(bool createIfNecessary) override { 137 SkSampler* getSampler(bool createIfNecessary) override {
137 SkASSERT(fSwizzler); 138 SkASSERT(fSwizzler);
138 return fSwizzler; 139 return fSwizzler;
139 } 140 }
140 141
141 /* 142 /*
142 * @return true if the read is successful and false if the read fails. 143 * @return true if the read is successful and false if the read fails.
143 */ 144 */
144 bool readRow(); 145 bool readRow();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 SkAutoTDeleteArray<uint8_t> fSrcBuffer; 181 SkAutoTDeleteArray<uint8_t> fSrcBuffer;
181 const SkIRect fFrameRect; 182 const SkIRect fFrameRect;
182 const uint32_t fTransIndex; 183 const uint32_t fTransIndex;
183 uint32_t fFillIndex; 184 uint32_t fFillIndex;
184 const bool fFrameIsSubset; 185 const bool fFrameIsSubset;
185 SkAutoTDelete<SkSwizzler> fSwizzler; 186 SkAutoTDelete<SkSwizzler> fSwizzler;
186 SkAutoTUnref<SkColorTable> fColorTable; 187 SkAutoTUnref<SkColorTable> fColorTable;
187 188
188 typedef SkCodec INHERITED; 189 typedef SkCodec INHERITED;
189 }; 190 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698