From 8664a1d7d719153e8e854ff0112519d92916cfe2 Mon Sep 17 00:00:00 2001 From: Jim Van Verth Date: Thu, 28 Jun 2018 16:26:50 -0400 Subject: Add ear-clipping code to triangulate simple polygons. Use this to fill concave shadows. Bug: skia:7971 Change-Id: I63dc1ed845f9fa3fcd86f1ad13b03da23cae0313 Reviewed-on: https://skia-review.googlesource.com/135200 Commit-Queue: Jim Van Verth Reviewed-by: Robert Phillips --- gm/convex_all_line_paths.cpp | 2 +- gm/polygonoffset.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gm') diff --git a/gm/convex_all_line_paths.cpp b/gm/convex_all_line_paths.cpp index b1907bccb7..e21711b2bc 100644 --- a/gm/convex_all_line_paths.cpp +++ b/gm/convex_all_line_paths.cpp @@ -6,7 +6,7 @@ */ #include "gm.h" -#include "SkOffsetPolygon.h" +#include "SkPolyUtils.h" #include "SkPathPriv.h" static void create_ngon(int n, SkPoint* pts, SkScalar width, SkScalar height) { diff --git a/gm/polygonoffset.cpp b/gm/polygonoffset.cpp index 48b6d1a4e4..44a313b285 100644 --- a/gm/polygonoffset.cpp +++ b/gm/polygonoffset.cpp @@ -7,7 +7,7 @@ #include "gm.h" #include "sk_tool_utils.h" -#include "SkOffsetPolygon.h" +#include "SkPolyUtils.h" #include "SkPathPriv.h" static void create_ngon(int n, SkPoint* pts, SkScalar w, SkScalar h, SkPath::Direction dir) { -- cgit v1.2.3