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

Unified Diff: Source/platform/image-decoders/jpeg/JPEGImageDecoder.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/jpeg/JPEGImageDecoder.h
diff --git a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
index 3f2a8812706aa1002e54afe5327d5d83ebe04306..807b6f72d4e593327fb903ca24962157bfbdc0d1 100644
--- a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
+++ b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
@@ -47,6 +47,7 @@ public:
virtual String filenameExtension() const OVERRIDE { return "jpg"; }
virtual bool isSizeAvailable() OVERRIDE;
virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; }
+ virtual PassRefPtr<ColorSpaceProfile> colorProfile() const OVERRIDE;
virtual IntSize decodedSize() const OVERRIDE { return m_decodedSize; }
virtual bool setSize(unsigned width, unsigned height) OVERRIDE;
virtual ImageFrame* frameBufferAtIndex(size_t) OVERRIDE;
@@ -61,6 +62,7 @@ public:
void setOrientation(ImageOrientation orientation) { m_orientation = orientation; }
void setHasColorProfile(bool hasColorProfile) { m_hasColorProfile = hasColorProfile; }
+ void setColorProfile(PassRefPtr<ColorSpaceProfile> profile) { m_colorProfile = profile; }
void setDecodedSize(unsigned width, unsigned height);
private:
@@ -70,6 +72,7 @@ private:
void decode(bool onlySize);
OwnPtr<JPEGImageReader> m_reader;
+ RefPtr<ColorSpaceProfile> m_colorProfile;
IntSize m_decodedSize;
bool m_hasColorProfile;
};

Powered by Google App Engine
This is Rietveld 408576698