| Index: src/codec/SkJpegCodec.h
|
| diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h
|
| index 1844269e6b3eff13a2e53dd636a8845e299c8739..058a9e1d01dd0c7b288766304b39c2ff292448fc 100644
|
| --- a/src/codec/SkJpegCodec.h
|
| +++ b/src/codec/SkJpegCodec.h
|
| @@ -60,6 +60,7 @@ protected:
|
| SkPMColor ctable[], int* ctableCount) override;
|
|
|
| private:
|
| + SkAutoTDelete<SkSwizzler> fSwizzler;
|
|
|
| /*
|
| * Read enough of the stream to initialize the SkJpegCodec.
|
| @@ -94,6 +95,10 @@ private:
|
| */
|
| SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* decoderMgr);
|
|
|
| + // Helper to set up swizzler.
|
| + Result initializeSwizzler(const SkImageInfo& requestedInfo, void* dst,
|
| + size_t rowBytes, const Options&, SkPMColor*, int* ctableCount);
|
| +
|
| /*
|
| * Handles rewinding the input stream if it is necessary
|
| */
|
| @@ -107,10 +112,10 @@ private:
|
| bool setOutputColorSpace(const SkImageInfo& dst);
|
|
|
| /*
|
| - * Checks if we can scale to the requested dimensions and scales the dimensions
|
| - * if possible
|
| + * Checks if we can natively scale to the requested dimensions and natively scales the
|
| + * dimensions if possible
|
| */
|
| - bool scaleToDimensions(uint32_t width, uint32_t height);
|
| + bool nativelyScaleToDimensions(uint32_t width, uint32_t height);
|
|
|
| /*
|
| * Create the swizzler based on the encoded format
|
|
|