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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp

Issue 1796293003: Image decode color: Push color profile from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove prototype Created 4 years, 9 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/ImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
index dc92826df7f3ef23d443bb621ee2359fad6959df..faa52cc5b1102dfcdce1c6356471fbf1a07bbf60 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
@@ -82,6 +82,13 @@ inline bool matchesBMPSignature(char* contents)
return !memcmp(contents, "BM", 2);
}
+void ImageDecoder::setOutputDeviceColorProfile(const ColorProfile& colorProfile)
+{
+#if USE(QCMSLIB)
+ qcmsOutputDeviceProfile(&colorProfile);
+#endif
+}
+
PassOwnPtr<ImageDecoder> ImageDecoder::create(const SharedBuffer& data, AlphaOption alphaOption, GammaAndColorProfileOption colorOptions)
{
const size_t longestSignatureLength = sizeof("RIFF????WEBPVP") - 1;

Powered by Google App Engine
This is Rietveld 408576698