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

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

Issue 1695473002: Fix colorType/alphaType checks in SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase 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
« 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 "SkColorTable.h" 9 #include "SkColorTable.h"
10 #include "SkImageInfo.h" 10 #include "SkImageInfo.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 /* 122 /*
123 * Initializes the swizzler. 123 * Initializes the swizzler.
124 * 124 *
125 * @param dstInfo Output image information. Dimensions may have been 125 * @param dstInfo Output image information. Dimensions may have been
126 * adjusted if the image frame size does not match the size 126 * adjusted if the image frame size does not match the size
127 * indicated in the header. 127 * indicated in the header.
128 * @param options Informs the swizzler if destination memory is zero initia lized. 128 * @param options Informs the swizzler if destination memory is zero initia lized.
129 * Contains subset information. 129 * Contains subset information.
130 */ 130 */
131 Result initializeSwizzler(const SkImageInfo& dstInfo, 131 void initializeSwizzler(const SkImageInfo& dstInfo,
132 const Options& options); 132 const Options& options);
133 133
134 SkSampler* getSampler(bool createIfNecessary) override { 134 SkSampler* getSampler(bool createIfNecessary) override {
135 SkASSERT(fSwizzler); 135 SkASSERT(fSwizzler);
136 return fSwizzler; 136 return fSwizzler;
137 } 137 }
138 138
139 /* 139 /*
140 * @return true if the read is successful and false if the read fails. 140 * @return true if the read is successful and false if the read fails.
141 */ 141 */
(...skipping 52 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698