[email protected] | 71c6ea9 | 2012-09-17 19:33:13 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef UI_GFX_PATH_WIN_H_ | ||||
6 | #define UI_GFX_PATH_WIN_H_ | ||||
7 | |||||
8 | #include <windows.h> | ||||
9 | |||||
[email protected] | d34e407 | 2013-09-05 20:28:30 | [diff] [blame] | 10 | #include "ui/gfx/gfx_export.h" |
[email protected] | 71c6ea9 | 2012-09-17 19:33:13 | [diff] [blame] | 11 | |
12 | class SkPath; | ||||
[email protected] | 21ed140d | 2013-11-08 06:08:35 | [diff] [blame] | 13 | class SkRegion; |
[email protected] | 71c6ea9 | 2012-09-17 19:33:13 | [diff] [blame] | 14 | |
15 | namespace gfx { | ||||
16 | |||||
[email protected] | 21ed140d | 2013-11-08 06:08:35 | [diff] [blame] | 17 | // Creates a new HRGN given |region|. The caller is responsible for destroying |
18 | // the returned region. | ||||
19 | GFX_EXPORT HRGN CreateHRGNFromSkRegion(const SkRegion& path); | ||||
20 | |||||
[email protected] | 71c6ea9 | 2012-09-17 19:33:13 | [diff] [blame] | 21 | // Creates a new HRGN given |path|. The caller is responsible for destroying |
alex-ac | 2cb37ad8 | 2014-11-13 18:03:29 | [diff] [blame] | 22 | // the returned region. Returns empty region (not NULL) for empty path. |
[email protected] | 4ffa789 | 2013-09-27 16:56:06 | [diff] [blame] | 23 | GFX_EXPORT HRGN CreateHRGNFromSkPath(const SkPath& path); |
[email protected] | 71c6ea9 | 2012-09-17 19:33:13 | [diff] [blame] | 24 | |
25 | } // namespace gfx | ||||
26 | |||||
27 | #endif // UI_GFX_PATH_WIN_H_ |