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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.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/jpeg/JPEGImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
index f7cfc73e07c275fabde313600ba45f57dd3aa836..bdd42f1008ace7bf88c1b1335f6d2b9dd2dfe2e9 100644
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
@@ -42,6 +42,9 @@ public:
String filenameExtension() const override { return "jpg"; }
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; }
+ PassRefPtr<ColorSpaceProfile> deviceProfile() const override { return m_deviceProfile; };
IntSize decodedSize() const override { return m_decodedSize; }
IntSize decodedYUVSize(int component, SizeType) const override;
bool setSize(unsigned width, unsigned height) override;
@@ -56,6 +59,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:
@@ -69,6 +73,8 @@ private:
void decode(bool onlySize);
OwnPtr<JPEGImageReader> m_reader;
+ RefPtr<ColorSpaceProfile> m_colorProfile;
+ RefPtr<ColorSpaceProfile> m_deviceProfile;
OwnPtr<ImagePlanes> m_imagePlanes;
IntSize m_decodedSize;
bool m_hasColorProfile;

Powered by Google App Engine
This is Rietveld 408576698