aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2018-06-28 16:26:50 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-29 13:29:57 +0000
commit8664a1d7d719153e8e854ff0112519d92916cfe2 (patch)
tree4e0206ed9c734ba40593903ca66930e2df8e39a0 /gm
parenta5e703043ff034afea41ea24e9d8f978f05ba678 (diff)
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 <jvanverth@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'gm')
-rw-r--r--gm/convex_all_line_paths.cpp2
-rw-r--r--gm/polygonoffset.cpp2
2 files changed, 2 insertions, 2 deletions
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) {