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

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: Response to comments 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
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkCodec_libgif.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 "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 options Informs the swizzler if destination memory is zero initia lized.
133 * Contains subset information.
133 */ 134 */
134 Result initializeSwizzler(const SkImageInfo& dstInfo, ZeroInitialized zeroIn it); 135 Result initializeSwizzler(const SkImageInfo& dstInfo,
136 const Options& options);
135 137
136 SkSampler* getSampler(bool createIfNecessary) override { 138 SkSampler* getSampler(bool createIfNecessary) override {
137 SkASSERT(fSwizzler); 139 SkASSERT(fSwizzler);
138 return fSwizzler; 140 return fSwizzler;
139 } 141 }
140 142
141 /* 143 /*
142 * @return true if the read is successful and false if the read fails. 144 * @return true if the read is successful and false if the read fails.
143 */ 145 */
144 bool readRow(); 146 bool readRow();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 SkAutoTDeleteArray<uint8_t> fSrcBuffer; 182 SkAutoTDeleteArray<uint8_t> fSrcBuffer;
181 const SkIRect fFrameRect; 183 const SkIRect fFrameRect;
182 const uint32_t fTransIndex; 184 const uint32_t fTransIndex;
183 uint32_t fFillIndex; 185 uint32_t fFillIndex;
184 const bool fFrameIsSubset; 186 const bool fFrameIsSubset;
185 SkAutoTDelete<SkSwizzler> fSwizzler; 187 SkAutoTDelete<SkSwizzler> fSwizzler;
186 SkAutoTUnref<SkColorTable> fColorTable; 188 SkAutoTUnref<SkColorTable> fColorTable;
187 189
188 typedef SkCodec INHERITED; 190 typedef SkCodec INHERITED;
189 }; 191 };
OLDNEW
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkCodec_libgif.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698