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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.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/png/PNGImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.h
index 79bfa4f980a2006c717f14efc9e349e28b6f9051..b678da426f16acd89fd0caec9d02bc3aa7ae3bd4 100644
--- a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.h
@@ -41,6 +41,7 @@ public:
// ImageDecoder:
String filenameExtension() const override { return "png"; }
bool hasColorProfile() const override { return m_hasColorProfile; }
+ PassRefPtr<ColorSpaceProfile> colorProfile() const override { return m_colorProfile; };
// Callbacks from libpng
void headerAvailable();
@@ -58,6 +59,7 @@ private:
void decode(bool onlySize);
OwnPtr<PNGImageReader> m_reader;
+ RefPtr<ColorSpaceProfile> m_colorProfile;
bool m_hasColorProfile;
const unsigned m_offset;
};

Powered by Google App Engine
This is Rietveld 408576698