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

Unified Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp

Issue 2454123002: Refactor image decoders to use 'colorSpace' instead of 'colorProfile' (Closed)
Patch Set: Fix legacy ImageFrame Created 4 years, 2 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/core/imagebitmap/ImageBitmapFactories.cpp
diff --git a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
index 0355222f31fbed0b9070339883ba1116a650f125..90aea4e63d3bd276be70ab6b0cb0d740e411d677 100644
--- a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
@@ -279,10 +279,9 @@ void ImageBitmapFactories::ImageBitmapLoader::decodeImageOnDecoderThread(
ImageDecoder::AlphaOption alphaOp = ImageDecoder::AlphaPremultiplied;
if (premultiplyAlphaOption == "none")
alphaOp = ImageDecoder::AlphaNotPremultiplied;
- ImageDecoder::GammaAndColorProfileOption colorSpaceOp =
- ImageDecoder::GammaAndColorProfileApplied;
+ ImageDecoder::ColorSpaceOption colorSpaceOp = ImageDecoder::ColorSpaceApplied;
if (colorSpaceConversionOption == "none")
- colorSpaceOp = ImageDecoder::GammaAndColorProfileIgnored;
+ colorSpaceOp = ImageDecoder::ColorSpaceIgnored;
std::unique_ptr<ImageDecoder> decoder(ImageDecoder::create(
SegmentReader::createFromSkData(SkData::MakeWithoutCopy(
arrayBuffer->data(), arrayBuffer->byteLength())),

Powered by Google App Engine
This is Rietveld 408576698