Index: src/codec/SkSwizzler.h |
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h |
index 90099f057e80a90d96969ece303e56b48064c59f..abda3a99ef29c6eead53a1e946aeee5d0997a0fa 100644 |
--- a/src/codec/SkSwizzler.h |
+++ b/src/codec/SkSwizzler.h |
@@ -154,7 +154,10 @@ private: |
int dstWidth, int bpp, int deltaSrc, int offset, |
const SkPMColor ctable[]); |
- const RowProc fRowProc; |
+ // May be NULL. We will not always be able to used an optimized function. |
+ RowProc fFastProc; |
+ // Always non-NULL. We use this if fFastProc is NULL. |
+ const RowProc fProc; |
const SkPMColor* fColorTable; // Unowned pointer |
// Subset Swizzles |
@@ -241,8 +244,8 @@ private: |
// fBPP is bitsPerPixel |
const int fDstBPP; // Bytes per pixel for the destination color type |
- SkSwizzler(RowProc proc, const SkPMColor* ctable, int srcOffset, int srcWidth, int dstOffset, |
- int dstWidth, int srcBPP, int dstBPP); |
+ SkSwizzler(RowProc fastProc, RowProc proc, const SkPMColor* ctable, int srcOffset, |
+ int srcWidth, int dstOffset, int dstWidth, int srcBPP, int dstBPP); |
int onSetSampleX(int) override; |