Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h

Issue 1309393007: [poc] redecode Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resetColorProfileForTesting rename Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..736adff88f4c0809d4e33c9c0cc27fb9f9245af8 100644
--- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h
@@ -43,8 +43,10 @@ public:
// ImageDecoder:
String filenameExtension() const override { return "webp"; }
- bool hasColorProfile() const override { return m_hasColorProfile; }
void onSetData(SharedBuffer* data) override;
+ bool hasColorProfile() const override { return m_hasColorProfile; }
+ PassRefPtr<ColorSpaceProfile> colorProfile() const override { return m_colorProfile; };
+ void setDeviceProfile(ColorSpaceProfile* device) override { m_deviceProfile = device; }
int repetitionCount() const override;
bool frameIsCompleteAtIndex(size_t) const override;
float frameDurationAtIndex(size_t) const override;
@@ -64,10 +66,12 @@ private:
int m_formatFlags;
bool m_frameBackgroundHasAlpha;
bool m_hasColorProfile;
+ RefPtr<ColorSpaceProfile> m_colorProfile;
+ RefPtr<ColorSpaceProfile> m_deviceProfile;
#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();

Powered by Google App Engine
This is Rietveld 408576698