Index: Source/platform/graphics/filters/FilterEffect.cpp |
diff --git a/Source/platform/graphics/filters/FilterEffect.cpp b/Source/platform/graphics/filters/FilterEffect.cpp |
index d70f534081386d14850d5947da68be05971ef046..ce8f23f723481bd38b66d3446078b5c987ae6b66 100644 |
--- a/Source/platform/graphics/filters/FilterEffect.cpp |
+++ b/Source/platform/graphics/filters/FilterEffect.cpp |
@@ -458,6 +458,12 @@ Uint8ClampedArray* FilterEffect::createPremultipliedImageResult() |
return m_premultipliedImageResult.get(); |
} |
+Color FilterEffect::adaptColorToOperatingColorSpace(const Color& deviceColor) |
+{ |
+ // |deviceColor| is assumed to be DeviceRGB. |
+ return ColorSpaceUtilities::convertColor(deviceColor, operatingColorSpace()); |
+} |
+ |
void FilterEffect::transformResultColorSpace(ColorSpace dstColorSpace) |
{ |
if (!hasResult() || dstColorSpace == m_resultColorSpace) |