Index: Source/platform/image-decoders/webp/WEBPImageDecoder.h |
diff --git a/Source/platform/image-decoders/webp/WEBPImageDecoder.h b/Source/platform/image-decoders/webp/WEBPImageDecoder.h |
index d45da26db456e6c810a82bc65300f707da0012c4..ce9d25d2db50a73f464a9b76084e8732ffade0fd 100644 |
--- a/Source/platform/image-decoders/webp/WEBPImageDecoder.h |
+++ b/Source/platform/image-decoders/webp/WEBPImageDecoder.h |
@@ -44,6 +44,7 @@ public: |
virtual String filenameExtension() const OVERRIDE { return "webp"; } |
virtual bool isSizeAvailable() OVERRIDE; |
virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; } |
+ virtual PassRefPtr<ColorSpaceProfile> colorProfile() const OVERRIDE; |
virtual size_t frameCount() OVERRIDE; |
virtual ImageFrame* frameBufferAtIndex(size_t) OVERRIDE; |
virtual void setData(SharedBuffer* data, bool allDataReceived) OVERRIDE; |
@@ -60,10 +61,12 @@ private: |
int m_formatFlags; |
bool m_frameBackgroundHasAlpha; |
bool m_hasColorProfile; |
+ RefPtr<ColorSpaceProfile> m_colorProfile; |
#if USE(QCMSLIB) |
qcms_transform* colorTransform() const { return m_transform; } |
- void createColorTransform(const char* data, size_t); |
+ bool createColorTransform(const char* data, size_t); |
+ void clearColorTransform(); |
void readColorProfile(); |
bool m_haveReadProfile; |