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 #ifndef SKIA_EXT_SKIA_UTILS_WIN_H_ | 5 #ifndef SKIA_EXT_SKIA_UTILS_WIN_H_ |
6 #define SKIA_EXT_SKIA_UTILS_WIN_H_ | 6 #define SKIA_EXT_SKIA_UTILS_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 // Converts a Skia rect to a Windows RECT. | 34 // Converts a Skia rect to a Windows RECT. |
35 // Both use same in-memory format. Verified by COMPILE_ASSERT() in | 35 // Both use same in-memory format. Verified by COMPILE_ASSERT() in |
36 // skia_utils.cc. | 36 // skia_utils.cc. |
37 inline const RECT& SkIRectToRECT(const SkIRect& rect) { | 37 inline const RECT& SkIRectToRECT(const SkIRect& rect) { |
38 return reinterpret_cast<const RECT&>(rect); | 38 return reinterpret_cast<const RECT&>(rect); |
39 } | 39 } |
40 | 40 |
41 // Converts COLORREFs (0BGR) to the ARGB layout Skia expects. | 41 // Converts COLORREFs (0BGR) to the ARGB layout Skia expects. |
42 SkColor COLORREFToSkColor(COLORREF color); | 42 SK_API SkColor COLORREFToSkColor(COLORREF color); |
43 | 43 |
44 // Converts ARGB to COLORREFs (0BGR). | 44 // Converts ARGB to COLORREFs (0BGR). |
45 COLORREF SkColorToCOLORREF(SkColor color); | 45 SK_API COLORREF SkColorToCOLORREF(SkColor color); |
46 | 46 |
47 } // namespace skia | 47 } // namespace skia |
48 | 48 |
49 #endif // SKIA_EXT_SKIA_UTILS_WIN_H_ | 49 #endif // SKIA_EXT_SKIA_UTILS_WIN_H_ |
50 | 50 |
OLD | NEW |