OLD | NEW |
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 Loading... |
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 Loading... |
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 }; |
OLD | NEW |