| 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 b3bd7d93278ee227f858d7c18dbbf28eacff334c..931fbac932ed92becbe124e487dc69537a95fb79 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/graphics/BitmapImageMetrics.h"
|
| #include "platform/image-decoders/bmp/BMPImageDecoder.h"
|
| #include "platform/image-decoders/gif/GIFImageDecoder.h"
|
| #include "platform/image-decoders/ico/ICOImageDecoder.h"
|
| @@ -315,6 +316,11 @@ void ImageDecoder::setTargetColorProfile(const WebVector<char>& profile)
|
| if (gTargetColorProfile)
|
| return;
|
|
|
| + {
|
| + sk_sp<SkColorSpace> colorSpace = SkColorSpace::NewICC(profile.data(), profile.size());
|
| + BitmapImageMetrics::countGamma(colorSpace.get());
|
| + }
|
| +
|
| // FIXME: Add optional ICCv4 support and support for multiple monitors.
|
| gTargetColorProfile = qcms_profile_from_memory(profile.data(), profile.size());
|
| if (!gTargetColorProfile)
|
|
|