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