Index: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h |
diff --git a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h |
index d2d95ab96583455e40a6548e9e1d9838757da68a..ee18a9083b66837e4199ba9dcb9eb7ac744d5e27 100644 |
--- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h |
+++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h |
@@ -44,6 +44,7 @@ public: |
// ImageDecoder: |
String filenameExtension() const override { return "webp"; } |
bool hasColorProfile() const override { return m_hasColorProfile; } |
+ PassRefPtr<ColorSpaceProfile> colorProfile() const override { return m_colorProfile; } |
void onSetData(SharedBuffer* data) override; |
int repetitionCount() const override; |
bool frameIsCompleteAtIndex(size_t) const override; |
@@ -64,10 +65,11 @@ private: |
int m_formatFlags; |
bool m_frameBackgroundHasAlpha; |
bool m_hasColorProfile; |
+ RefPtr<ColorSpaceProfile> m_colorProfile; |
#if USE(QCMSLIB) |
qcms_transform* colorTransform() const { return m_transform; } |
- bool createColorTransform(const char* data, size_t); |
+ PassRefPtr<ColorSpaceProfile> createColorTransform(const char* data, size_t); |
void clearColorTransform(); |
void readColorProfile(); |