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

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

Issue 2512683003: Create ImageDecoder target color space (Closed)
Patch Set: Fix mid-air collision with https://codereview.chromium.org/2483243003 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 be94ce5b7a9f689494ec47a16ce59a601450ed3a..7747ae8346406dd1b25f49b5323ef5dfe70e5dff 100644
--- a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
@@ -161,7 +161,7 @@ void PNGImageDecoder::headerAvailable() {
// gray-scale image buffer and hand that to CoreGraphics.
sk_sp<SkColorSpace> colorSpace = readColorSpace(png, info);
if (colorSpace) {
- setColorSpaceAndComputeTransform(colorSpace);
+ setEmbeddedColorSpace(colorSpace);
}
}

Powered by Google App Engine
This is Rietveld 408576698