Index: ui/gfx/skia_utils_mac.mm |
=================================================================== |
--- ui/gfx/skia_utils_mac.mm (revision 0) |
+++ ui/gfx/skia_utils_mac.mm (revision 0) |
@@ -0,0 +1,16 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ui/gfx/skia_utils_mac.h" |
+ |
+namespace gfx { |
+ |
+NSColor* SkColorToNSColor(SkColor color) { |
Nico
2011/06/07 06:09:33
SkColorToCalibratedNSColor I think
sail
2011/06/07 06:20:45
Done.
|
+ return [NSColor colorWithCalibratedRed:SkColorGetR(color) / 255.0 |
+ green:SkColorGetG(color) / 255.0 |
+ blue:SkColorGetB(color) / 255.0 |
+ alpha:SkColorGetA(color) / 255.0]; |
+} |
+ |
+} // namespace gfx |