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

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

Issue 1220733013: SkCodec no longer inherits from SkImageGenerator. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Manually handle the lifetime of fScanlineDecoder. Created 5 years, 5 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/SkJpegCodec.cpp ('k') | src/codec/SkSwizzler.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 #ifndef SkSwizzler_DEFINED 8 #ifndef SkSwizzler_DEFINED
9 #define SkSwizzler_DEFINED 9 #define SkSwizzler_DEFINED
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 * @param dst Destination to write pixels. Must match info and dstRowBytes 120 * @param dst Destination to write pixels. Must match info and dstRowBytes
121 * @param dstRowBytes rowBytes for dst. 121 * @param dstRowBytes rowBytes for dst.
122 * @param ZeroInitialized Whether dst is zero-initialized. The 122 * @param ZeroInitialized Whether dst is zero-initialized. The
123 implementation may choose to skip writing zeroes 123 implementation may choose to skip writing zeroes
124 * if set to kYes_ZeroInitialized. 124 * if set to kYes_ZeroInitialized.
125 * @return A new SkSwizzler or NULL on failure. 125 * @return A new SkSwizzler or NULL on failure.
126 */ 126 */
127 static SkSwizzler* CreateSwizzler(SrcConfig, const SkPMColor* ctable, 127 static SkSwizzler* CreateSwizzler(SrcConfig, const SkPMColor* ctable,
128 const SkImageInfo&, void* dst, 128 const SkImageInfo&, void* dst,
129 size_t dstRowBytes, 129 size_t dstRowBytes,
130 SkImageGenerator::ZeroInitialized); 130 SkCodec::ZeroInitialized);
131 131
132 /** 132 /**
133 * Fill the remainder of the destination with a single color 133 * Fill the remainder of the destination with a single color
134 * 134 *
135 * @param dstStartRow 135 * @param dstStartRow
136 * The destination row to fill from. 136 * The destination row to fill from.
137 * 137 *
138 * @param numRows 138 * @param numRows
139 * The number of rows to fill. 139 * The number of rows to fill.
140 * 140 *
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const SkImageInfo fDstInfo; 244 const SkImageInfo fDstInfo;
245 void* fDstRow; 245 void* fDstRow;
246 const size_t fDstRowBytes; 246 const size_t fDstRowBytes;
247 int fCurrY; 247 int fCurrY;
248 248
249 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc, 249 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc,
250 const SkImageInfo& info, void* dst, size_t rowBytes); 250 const SkImageInfo& info, void* dst, size_t rowBytes);
251 251
252 }; 252 };
253 #endif // SkSwizzler_DEFINED 253 #endif // SkSwizzler_DEFINED
OLDNEW
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | src/codec/SkSwizzler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698