| 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 691e9e41b26c8f0a938387987311526742d7ca7c..874b7d06e12a3f288ac7c7d56ac845b6f1a6bcfa 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| @@ -21,6 +21,7 @@
|
| #include "platform/image-decoders/ImageDecoder.h"
|
|
|
| #include "platform/PlatformInstrumentation.h"
|
| +#include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/graphics/BitmapImageMetrics.h"
|
| #include "platform/image-decoders/bmp/BMPImageDecoder.h"
|
| #include "platform/image-decoders/gif/GIFImageDecoder.h"
|
| @@ -364,6 +365,10 @@ void ImageDecoder::setColorProfileAndComputeTransform(const char* iccData, unsig
|
| m_colorProfile.assign(iccData, iccLength);
|
| m_hasColorProfile = true;
|
|
|
| + // With color correct rendering, we use Skia instead of QCMS to color correct images.
|
| + if (RuntimeEnabledFeatures::colorCorrectRenderingEnabled())
|
| + return;
|
| +
|
| #if USE(QCMSLIB)
|
| m_sourceToOutputDeviceColorTransform.reset();
|
|
|
|
|