Chromium Code Reviews| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 170 const uint8_t* SK_RESTRICT src, | 170 const uint8_t* SK_RESTRICT src, |
| 171 int dstWidth, int bpp, int deltaSrc, int offs et, | 171 int dstWidth, int bpp, int deltaSrc, int offs et, |
| 172 const SkPMColor ctable[]); | 172 const SkPMColor ctable[]); |
| 173 | 173 |
| 174 const RowProc fRowProc; | 174 const RowProc fRowProc; |
| 175 const SkPMColor* fColorTable; // Unowned pointer | 175 const SkPMColor* fColorTable; // Unowned pointer |
| 176 const int fDeltaSrc; // if bitsPerPixel % 8 == 0 | 176 const int fDeltaSrc; // if bitsPerPixel % 8 == 0 |
| 177 // deltaSrc is bytesPerPixel | 177 // deltaSrc is bytesPerPixel |
| 178 // else | 178 // else |
| 179 // deltaSrc is bitsPerPixel | 179 // deltaSrc is bitsPerPixel |
| 180 const int fSrcWidth; // Width of the source - i.e. before a ny sampling. | 180 const int fSubsetWidth; // Width of the subset of source befor e any sampling. |
| 181 int fDstWidth; // Width of dst, which may differ with sampling. | 181 int fDstWidth; // Width of dst, which may differ with sampling. |
| 182 int fX0; // first X coord to sample | 182 int fX0; // first X coord to sample |
| 183 int fSampleX; // step between X samples | 183 int fSampleX; // step between X samples |
| 184 | 184 |
| 185 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc, int srcWidth ); | 185 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc, int srcWidth ); |
|
scroggo
2015/10/16 13:36:17
subsetWidth*
msarett
2015/10/16 17:36:52
Done.
| |
| 186 | 186 |
| 187 int onSetSampleX(int) override; | 187 int onSetSampleX(int) override; |
| 188 | 188 |
| 189 }; | 189 }; |
| 190 #endif // SkSwizzler_DEFINED | 190 #endif // SkSwizzler_DEFINED |
| OLD | NEW |