| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #endif | 10 #endif |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 } | 248 } |
| 249 } | 249 } |
| 250 } | 250 } |
| 251 | 251 |
| 252 SkColor SetColorAlpha(SkColor c, SkAlpha alpha) { | 252 SkColor SetColorAlpha(SkColor c, SkAlpha alpha) { |
| 253 return SkColorSetARGB(alpha, SkColorGetR(c), SkColorGetG(c), SkColorGetB(c)); | 253 return SkColorSetARGB(alpha, SkColorGetR(c), SkColorGetG(c), SkColorGetB(c)); |
| 254 } | 254 } |
| 255 | 255 |
| 256 SkColor GetSysSkColor(int which) { | 256 SkColor GetSysSkColor(int which) { |
| 257 #if defined(OS_WIN) | 257 #if defined(OS_WIN) |
| 258 return gfx::COLORREFToSkColor(::GetSysColor(which)); | 258 return skia::COLORREFToSkColor(::GetSysColor(which)); |
| 259 #else | 259 #else |
| 260 NOTIMPLEMENTED(); | 260 NOTIMPLEMENTED(); |
| 261 return SK_ColorLTGRAY; | 261 return SK_ColorLTGRAY; |
| 262 #endif | 262 #endif |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace color_utils | 265 } // namespace color_utils |
| 266 | 266 |
| OLD | NEW |