| Index: Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
|
| diff --git a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
|
| index 3f2a8812706aa1002e54afe5327d5d83ebe04306..807b6f72d4e593327fb903ca24962157bfbdc0d1 100644
|
| --- a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
|
| +++ b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
|
| @@ -47,6 +47,7 @@ public:
|
| virtual String filenameExtension() const OVERRIDE { return "jpg"; }
|
| virtual bool isSizeAvailable() OVERRIDE;
|
| virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; }
|
| + virtual PassRefPtr<ColorSpaceProfile> colorProfile() const OVERRIDE;
|
| virtual IntSize decodedSize() const OVERRIDE { return m_decodedSize; }
|
| virtual bool setSize(unsigned width, unsigned height) OVERRIDE;
|
| virtual ImageFrame* frameBufferAtIndex(size_t) OVERRIDE;
|
| @@ -61,6 +62,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:
|
| @@ -70,6 +72,7 @@ private:
|
| void decode(bool onlySize);
|
|
|
| OwnPtr<JPEGImageReader> m_reader;
|
| + RefPtr<ColorSpaceProfile> m_colorProfile;
|
| IntSize m_decodedSize;
|
| bool m_hasColorProfile;
|
| };
|
|
|