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

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

Issue 352873002: [wip] image color correction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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: 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;

Powered by Google App Engine
This is Rietveld 408576698