path_win.h 752 B

123456789101112131415161718192021222324252627
  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. #ifndef UI_GFX_PATH_WIN_H_
  5. #define UI_GFX_PATH_WIN_H_
  6. #include <windows.h>
  7. #include "ui/gfx/gfx_export.h"
  8. class SkPath;
  9. class SkRegion;
  10. namespace gfx {
  11. // Creates a new HRGN given |region|. The caller is responsible for destroying
  12. // the returned region.
  13. GFX_EXPORT HRGN CreateHRGNFromSkRegion(const SkRegion& path);
  14. // Creates a new HRGN given |path|. The caller is responsible for destroying
  15. // the returned region. Returns empty region (not NULL) for empty path.
  16. GFX_EXPORT HRGN CreateHRGNFromSkPath(const SkPath& path);
  17. } // namespace gfx
  18. #endif // UI_GFX_PATH_WIN_H_