Fix regions generation on windows.
On windows HRGN for window is generated from the SkPath using dumb
function that doesn`t respects anything except simple polygons. It's
impossible to create window with round corners on windows. Replacing
implementation of that function with a new one will fix this.
[email protected]
BUG=322360
Review URL: https://codereview.chromium.org/673623002
Cr-Commit-Position: refs/heads/master@{#304045}
diff --git a/ui/gfx/path_win.h b/ui/gfx/path_win.h
index 317a6fb07..2b85075 100644
--- a/ui/gfx/path_win.h
+++ b/ui/gfx/path_win.h
@@ -19,7 +19,7 @@
GFX_EXPORT HRGN CreateHRGNFromSkRegion(const SkRegion& path);
// Creates a new HRGN given |path|. The caller is responsible for destroying
-// the returned region.
+// the returned region. Returns empty region (not NULL) for empty path.
GFX_EXPORT HRGN CreateHRGNFromSkPath(const SkPath& path);
} // namespace gfx