Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: Source/platform/graphics/Color.h

Issue 42313002: Move Color.*, DashArray and DrawLooper to Source/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: correct patch set 1 mistake Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
{

Powered by Google App Engine
This is Rietveld 408576698