| Index: Source/platform/graphics/Color.h
|
| diff --git a/Source/core/platform/graphics/Color.h b/Source/platform/graphics/Color.h
|
| similarity index 90%
|
| rename from Source/core/platform/graphics/Color.h
|
| rename to Source/platform/graphics/Color.h
|
| index 28983edee2bc1e2f587800208bbf1ea7c01bba56..5849f64b46e2c2440656dc8594326e090b7a5239 100644
|
| --- a/Source/core/platform/graphics/Color.h
|
| +++ b/Source/platform/graphics/Color.h
|
| @@ -37,22 +37,22 @@ class Color;
|
|
|
| typedef unsigned RGBA32; // RGBA quadruplet
|
|
|
| -RGBA32 makeRGB(int r, int g, int b);
|
| -RGBA32 makeRGBA(int r, int g, int b, int a);
|
| +PLATFORM_EXPORT RGBA32 makeRGB(int r, int g, int b);
|
| +PLATFORM_EXPORT RGBA32 makeRGBA(int r, int g, int b, int a);
|
|
|
| -RGBA32 colorWithOverrideAlpha(RGBA32 color, float overrideAlpha);
|
| -RGBA32 makeRGBA32FromFloats(float r, float g, float b, float a);
|
| -RGBA32 makeRGBAFromHSLA(double h, double s, double l, double a);
|
| -RGBA32 makeRGBAFromCMYKA(float c, float m, float y, float k, float a);
|
| +PLATFORM_EXPORT RGBA32 colorWithOverrideAlpha(RGBA32 color, float overrideAlpha);
|
| +PLATFORM_EXPORT RGBA32 makeRGBA32FromFloats(float r, float g, float b, float a);
|
| +PLATFORM_EXPORT RGBA32 makeRGBAFromHSLA(double h, double s, double l, double a);
|
| +PLATFORM_EXPORT RGBA32 makeRGBAFromCMYKA(float c, float m, float y, float k, float a);
|
|
|
| -int differenceSquared(const Color&, const Color&);
|
| +PLATFORM_EXPORT int differenceSquared(const Color&, const Color&);
|
|
|
| inline int redChannel(RGBA32 color) { return (color >> 16) & 0xFF; }
|
| inline int greenChannel(RGBA32 color) { return (color >> 8) & 0xFF; }
|
| inline int blueChannel(RGBA32 color) { return color & 0xFF; }
|
| inline int alphaChannel(RGBA32 color) { return (color >> 24) & 0xFF; }
|
|
|
| -class Color {
|
| +class PLATFORM_EXPORT Color {
|
| WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| Color() : m_color(0), m_valid(false) { }
|
| @@ -136,8 +136,8 @@ inline bool operator!=(const Color& a, const Color& b)
|
| return !(a == b);
|
| }
|
|
|
| -Color colorFromPremultipliedARGB(RGBA32);
|
| -RGBA32 premultipliedARGBFromColor(const Color&);
|
| +PLATFORM_EXPORT Color colorFromPremultipliedARGB(RGBA32);
|
| +PLATFORM_EXPORT RGBA32 premultipliedARGBFromColor(const Color&);
|
|
|
| inline Color blend(const Color& from, const Color& to, double progress, bool blendPremultiplied = true)
|
| {
|
|
|