Index: third_party/WebKit/Source/platform/graphics/ImageSource.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp |
index 2fbb2f15ee6b009d41118f71cf7f92b71b1ad1c3..f4f30973f5ebb53e5dd06f0d6cd9784a903debbb 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp |
@@ -28,6 +28,7 @@ |
#include "config.h" |
#include "platform/graphics/ImageSource.h" |
+#include "platform/graphics/ColorSpaceProfile.h" |
#include "platform/graphics/DeferredImageDecoder.h" |
#include "platform/image-decoders/ImageDecoder.h" |
#include "third_party/skia/include/core/SkImage.h" |
@@ -73,6 +74,11 @@ bool ImageSource::hasColorProfile() const |
return m_decoder && m_decoder->hasColorProfile(); |
} |
+PassRefPtr<ColorSpaceProfile> ImageSource::colorProfile() const |
+{ |
+ return m_decoder ? m_decoder->colorProfile() : nullptr; |
+} |
+ |
IntSize ImageSource::size(RespectImageOrientationEnum shouldRespectOrientation) const |
{ |
return frameSizeAtIndex(0, shouldRespectOrientation); |