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

Unified Diff: Source/platform/image-decoders/png/PNGImageDecoder.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/png/PNGImageDecoder.h
diff --git a/Source/platform/image-decoders/png/PNGImageDecoder.h b/Source/platform/image-decoders/png/PNGImageDecoder.h
index d3761accedb3f30dd651f79a0755a5abadc7e034..bf8a48b6c1a13ef6b9ae21dcb14e3a67d1732e68 100644
--- a/Source/platform/image-decoders/png/PNGImageDecoder.h
+++ b/Source/platform/image-decoders/png/PNGImageDecoder.h
@@ -45,6 +45,7 @@ public:
virtual String filenameExtension() const OVERRIDE { return "png"; }
virtual bool isSizeAvailable() OVERRIDE;
virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; }
+ virtual PassRefPtr<ColorSpaceProfile> colorProfile() const OVERRIDE;
virtual ImageFrame* frameBufferAtIndex(size_t) OVERRIDE;
// CAUTION: setFailed() deletes |m_reader|. Be careful to avoid
// accessing deleted memory, especially when calling this from inside
@@ -68,8 +69,10 @@ private:
void decode(bool onlySize);
OwnPtr<PNGImageReader> m_reader;
- bool m_doNothingOnFailure;
+ RefPtr<ColorSpaceProfile> m_colorProfile;
bool m_hasColorProfile;
+
+ bool m_doNothingOnFailure;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698