| Index: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
|
| index 25aa80a4cef47478498a413ed3265849a0a2e72d..3cece1a0492f64b86ae0baf764afde4080780579 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
|
| @@ -42,6 +42,7 @@ public:
|
| String filenameExtension() const override { return "jpg"; }
|
| void onSetData(SharedBuffer* data) override;
|
| bool hasColorProfile() const override { return m_hasColorProfile; }
|
| + PassRefPtr<ColorSpaceProfile> colorProfile() const override { return m_colorProfile; }
|
| IntSize decodedSize() const override { return m_decodedSize; }
|
| IntSize decodedYUVSize(int component, SizeType) const override;
|
| bool setSize(unsigned width, unsigned height) override;
|
| @@ -56,6 +57,7 @@ public:
|
|
|
| void setOrientation(ImageOrientation orientation) { m_orientation = orientation; }
|
| void setHasColorProfile(bool hasColorProfile) { m_hasColorProfile = hasColorProfile; }
|
| + void setColorProfile(PassRefPtr<ColorSpaceProfile> profile) { m_colorProfile = profile; }
|
| void setDecodedSize(unsigned width, unsigned height);
|
|
|
| private:
|
| @@ -69,6 +71,7 @@ private:
|
| void decode(bool onlySize);
|
|
|
| OwnPtr<JPEGImageReader> m_reader;
|
| + RefPtr<ColorSpaceProfile> m_colorProfile;
|
| OwnPtr<ImagePlanes> m_imagePlanes;
|
| IntSize m_decodedSize;
|
| bool m_hasColorProfile;
|
|
|