Index: skia/ext/skia_utils_mac.h |
=================================================================== |
--- skia/ext/skia_utils_mac.h (revision 88097) |
+++ skia/ext/skia_utils_mac.h (working copy) |
@@ -26,9 +26,11 @@ |
#ifdef __OBJC__ |
@class NSImage; |
@class NSImageRep; |
+@class NSColor; |
#else |
class NSImage; |
class NSImageRep; |
+class NSColor; |
#endif |
namespace gfx { |
@@ -62,6 +64,9 @@ |
// Converts ARGB to CGColorRef. |
CGColorRef SkColorToCGColorRef(SkColor color); |
+// Converts ARGB to NSColor. |
+NSColor* SkColorToCalibratedNSColor(SkColor color); |
+ |
// Converts a CGImage to a SkBitmap. |
SkBitmap CGImageToSkBitmap(CGImageRef image); |