| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/gfx/skia_utils_mac.h" | 5 #include "base/gfx/skia_utils_mac.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "SkMatrix.h" | 8 #include "SkMatrix.h" |
| 9 #include "SkRect.h" | 9 #include "SkRect.h" |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Converts ARGB to CGColorRef. | 74 // Converts ARGB to CGColorRef. |
| 75 CGColorRef SkColorToCGColorRef(SkColor color) { | 75 CGColorRef SkColorToCGColorRef(SkColor color) { |
| 76 return CGColorCreateGenericRGB(SkColorGetR(color) / 255.0, | 76 return CGColorCreateGenericRGB(SkColorGetR(color) / 255.0, |
| 77 SkColorGetG(color) / 255.0, | 77 SkColorGetG(color) / 255.0, |
| 78 SkColorGetB(color) / 255.0, | 78 SkColorGetB(color) / 255.0, |
| 79 SkColorGetA(color) / 255.0); | 79 SkColorGetA(color) / 255.0); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace gfx | 82 } // namespace gfx |
| 83 | 83 |
| OLD | NEW |