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

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

Issue 2462803002: Plumb color space to DecodingImageGenerator and ImageFrameGenerator (Closed)
Patch Set: Incorporate review feedback Created 4 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/png/PNGImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
index 3b5633bc4f95ca5f34000fb76f0135cd279dc716..57fbbb4e2497a1cc483740e5855b710c2b55c96c 100644
--- a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
@@ -230,14 +230,14 @@ void PNGImageDecoder::headerAvailable() {
png_uint_32 profileLength = 0;
if (png_get_iCCP(png, info, &profileName, &compressionType, &profile,
&profileLength)) {
- setColorSpaceAndComputeTransform(reinterpret_cast<char*>(profile),
- profileLength);
+ setColorProfileAndComputeTransform(reinterpret_cast<char*>(profile),
+ profileLength);
}
}
#endif // PNG_iCCP_SUPPORTED
}
- if (!hasColorSpace()) {
+ if (!hasEmbeddedColorSpace()) {
// TODO (msarett):
// Applying the transfer function (gamma) should be handled by
// SkColorSpaceXform. Here we always convert to a transfer function that

Powered by Google App Engine
This is Rietveld 408576698