| Index: src/codec/SkSwizzler.h
|
| diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
|
| index b00ee14e0699189f9834ccc7624ef8ee8924c0f8..b70a51786d6ff8531781cceb2194d49e42fc43d9 100644
|
| --- a/src/codec/SkSwizzler.h
|
| +++ b/src/codec/SkSwizzler.h
|
| @@ -122,12 +122,13 @@ public:
|
| * @param ZeroInitialized Whether dst is zero-initialized. The
|
| implementation may choose to skip writing zeroes
|
| * if set to kYes_ZeroInitialized.
|
| + * @param sampleX the step between samples in the x direction.
|
| * @return A new SkSwizzler or NULL on failure.
|
| */
|
| static SkSwizzler* CreateSwizzler(SrcConfig, const SkPMColor* ctable,
|
| const SkImageInfo&, void* dst,
|
| size_t dstRowBytes,
|
| - SkCodec::ZeroInitialized);
|
| + SkCodec::ZeroInitialized, int sampleX);
|
|
|
| /**
|
| * Fill the remainder of the destination with a single color
|
| @@ -245,9 +246,11 @@ private:
|
| void* fDstRow;
|
| const size_t fDstRowBytes;
|
| int fCurrY;
|
| + const int fX0; // first X coord to sample
|
| + const int fSampleX; // step between X samples
|
|
|
| SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc,
|
| - const SkImageInfo& info, void* dst, size_t rowBytes);
|
| + const SkImageInfo& info, void* dst, size_t rowBytes, int sampleX);
|
|
|
| };
|
| #endif // SkSwizzler_DEFINED
|
|
|