Index: Source/platform/graphics/ColorSpace.h |
diff --git a/Source/platform/graphics/ColorSpace.h b/Source/platform/graphics/ColorSpace.h |
index d76828e000466e1ec0b0c3d64628087536a5e87c..85b0092c060e6473e62c843de201f11a4ead8727 100644 |
--- a/Source/platform/graphics/ColorSpace.h |
+++ b/Source/platform/graphics/ColorSpace.h |
@@ -28,6 +28,9 @@ |
#include "platform/PlatformExport.h" |
#include "platform/graphics/Color.h" |
+#include "wtf/PassRefPtr.h" |
+ |
+class SkColorFilter; |
namespace blink { |
@@ -49,6 +52,9 @@ const uint8_t* getConversionLUT(ColorSpace dstColorSpace, ColorSpace srcColorSpa |
// Convert a Color assumed to be in the |srcColorSpace| into the |dstColorSpace|. |
Color convertColor(const Color& srcColor, ColorSpace dstColorSpace, ColorSpace srcColorSpace = ColorSpaceDeviceRGB); |
+// Create a color filter that will convert from |srcColorSpace| into |dstColorSpace|. |
+PassRefPtr<SkColorFilter> createColorSpaceFilter(ColorSpace srcColorSpace, ColorSpace dstColorSpace); |
+ |
} // namespace ColorSpaceUtilities |
} // namespace blink |