| Index: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| index 8653487de0e030332a57d5a41027af96b177d262..16df7c653ba1ad5e77dfd08c186589cc1a945b3f 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| @@ -329,6 +329,12 @@ bool WEBPImageDecoder::createColorTransform(const char* data, size_t size)
|
|
|
| // We currently only support color profiles for RGB profiled images.
|
| ASSERT(rgbData == qcms_profile_get_color_space(inputProfile));
|
| +
|
| + if (qcms_profile_match(inputProfile, deviceProfile)) {
|
| + qcms_profile_release(inputProfile);
|
| + return false;
|
| + }
|
| +
|
| // The input image pixels are RGBA format.
|
| qcms_data_type format = QCMS_DATA_RGBA_8;
|
| // FIXME: Don't force perceptual intent if the image profile contains an intent.
|
|
|