| Index: src/codec/SkSampler.h
|
| diff --git a/src/codec/SkSampler.h b/src/codec/SkSampler.h
|
| index d7b4c98f235ad1ccb15afa7ff77997aa6d621372..afabc1f9eb48be4676da33eb9eb60e0a837582af 100644
|
| --- a/src/codec/SkSampler.h
|
| +++ b/src/codec/SkSampler.h
|
| @@ -19,8 +19,43 @@ public:
|
| return this->onSetSampleX(sampleX);
|
| }
|
|
|
| + /**
|
| + * Fill the remainder of the destination with a single color
|
| + *
|
| + * @param info
|
| + * Contains the color type of the rows to fill.
|
| + * Contains the width of the destination rows to fill
|
| + * Contains the number of rows that we need to fill.
|
| + *
|
| + * @param dst
|
| + * The destination row to fill from.
|
| + *
|
| + * @param rowBytes
|
| + * Stride in bytes of the destination.
|
| + *
|
| + * @param colorOrIndex
|
| + * If colorType is kN32, colorOrIndex is treated as a 32-bit color.
|
| + * If colorType is k565, colorOrIndex is treated as a 16-bit color.
|
| + * If colorType is kGray, colorOrIndex is treated as an 8-bit color.
|
| + * If colorType is kIndex, colorOrIndex is treated as an 8-bit index.
|
| + * Other SkColorTypes are not supported.
|
| + *
|
| + * @param zeroInit
|
| + * Indicates whether memory is already zero initialized.
|
| + *
|
| + */
|
| + static void Fill(const SkImageInfo& info, void* dst, size_t rowBytes,
|
| + uint32_t colorOrIndex, SkCodec::ZeroInitialized zeroInit);
|
| +
|
| + /**
|
| + * Allow subclasses to implement unique versions of fill().
|
| + */
|
| + virtual void fill(const SkImageInfo& info, void* dst, size_t rowBytes,
|
| + uint32_t colorOrIndex, SkCodec::ZeroInitialized zeroInit) {}
|
| +
|
| virtual ~SkSampler() {}
|
| private:
|
| +
|
| virtual int onSetSampleX(int) = 0;
|
| };
|
|
|
|
|