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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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: 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 25aa80a4cef47478498a413ed3265849a0a2e72d..3cece1a0492f64b86ae0baf764afde4080780579 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,7 @@ 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; }
IntSize decodedSize() const override { return m_decodedSize; }
IntSize decodedYUVSize(int component, SizeType) const override;
bool setSize(unsigned width, unsigned height) override;
@@ -56,6 +57,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 +71,7 @@ private:
void decode(bool onlySize);
OwnPtr<JPEGImageReader> m_reader;
+ RefPtr<ColorSpaceProfile> m_colorProfile;
OwnPtr<ImagePlanes> m_imagePlanes;
IntSize m_decodedSize;
bool m_hasColorProfile;

Powered by Google App Engine
This is Rietveld 408576698