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 41c58d68602ca881f9133a61bb0862ad28b2b2e0..2b74039a063c2e3cda7630c714c14ef01fdb0de9 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(); |