| Index: third_party/WebKit/WebCore/platform/graphics/Color.h
|
| ===================================================================
|
| --- third_party/WebKit/WebCore/platform/graphics/Color.h (revision 9310)
|
| +++ third_party/WebKit/WebCore/platform/graphics/Color.h (working copy)
|
| @@ -60,6 +60,7 @@
|
| 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);
|
|
|
| int differenceSquared(const Color&, const Color&);
|
|
|
| @@ -71,6 +72,8 @@
|
| Color(int r, int g, int b, int a) : m_color(makeRGBA(r, g, b, a)), m_valid(true) { }
|
| // Color is currently limited to 32bit RGBA, perhaps some day we'll support better colors
|
| Color(float r, float g, float b, float a) : m_color(makeRGBA32FromFloats(r, g, b, a)), m_valid(true) { }
|
| + // Creates a new color from the specific CMYK and alpha values.
|
| + Color(float c, float m, float y, float k, float a) : m_color(makeRGBAFromCMYKA(c, m, y, k, a)), m_valid(true) { }
|
| explicit Color(const String&);
|
| explicit Color(const char*);
|
|
|
|
|