diff options
author | Jim Van Verth <jvanverth@google.com> | 2018-03-28 10:10:30 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-28 14:49:14 +0000 |
commit | 41964ed46e241c95cd6c91ac99271c2a232f1b65 (patch) | |
tree | 208c9df7a662f6064dd290bd39ad1fc734cfd28b | |
parent | 3a9710b1e40f327779dae18f71c81c7fb3aa3ee0 (diff) |
Rename SkInsetConvexPolygon to SkOffsetPolygon.
Prep for adding new offset routines.
Change-Id: I261c22d9998e5ae4567b697c5f20a31f20777ac1
Reviewed-on: https://skia-review.googlesource.com/116800
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
-rw-r--r-- | gm/convex_all_line_paths.cpp | 2 | ||||
-rw-r--r-- | gn/utils.gni | 4 | ||||
-rwxr-xr-x | src/utils/SkOffsetPolygon.cpp (renamed from src/utils/SkInsetConvexPolygon.cpp) | 2 | ||||
-rwxr-xr-x | src/utils/SkOffsetPolygon.h (renamed from src/utils/SkInsetConvexPolygon.h) | 0 | ||||
-rwxr-xr-x | src/utils/SkShadowTessellator.cpp | 2 | ||||
-rw-r--r-- | tests/InsetConvexPolyTest.cpp | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/gm/convex_all_line_paths.cpp b/gm/convex_all_line_paths.cpp index a4bc6a66cb..b8cdbce72a 100644 --- a/gm/convex_all_line_paths.cpp +++ b/gm/convex_all_line_paths.cpp @@ -6,7 +6,7 @@ */ #include "gm.h" -#include "SkInsetConvexPolygon.h" +#include "SkOffsetPolygon.h" #include "SkPathPriv.h" static void create_ngon(int n, SkPoint* pts, SkScalar width, SkScalar height) { diff --git a/gn/utils.gni b/gn/utils.gni index fb9e0a2abd..920924b538 100644 --- a/gn/utils.gni +++ b/gn/utils.gni @@ -37,8 +37,6 @@ skia_utils_sources = [ "$_src/utils/SkFloatToDecimal.cpp", "$_src/utils/SkFloatToDecimal.h", "$_src/utils/SkFloatUtils.h", - "$_src/utils/SkInsetConvexPolygon.cpp", - "$_src/utils/SkInsetConvexPolygon.h", "$_src/utils/SkInterpolator.cpp", "$_src/utils/SkJSONWriter.cpp", "$_src/utils/SkJSONWriter.h", @@ -47,6 +45,8 @@ skia_utils_sources = [ "$_src/utils/SkMultiPictureDocument.cpp", "$_src/utils/SkNWayCanvas.cpp", "$_src/utils/SkNullCanvas.cpp", + "$_src/utils/SkOffsetPolygon.cpp", + "$_src/utils/SkOffsetPolygon.h", "$_src/utils/SkOSPath.cpp", "$_src/utils/SkOSPath.h", "$_src/utils/SkPaintFilterCanvas.cpp", diff --git a/src/utils/SkInsetConvexPolygon.cpp b/src/utils/SkOffsetPolygon.cpp index 8a55b13390..c8ebbeb7af 100755 --- a/src/utils/SkInsetConvexPolygon.cpp +++ b/src/utils/SkOffsetPolygon.cpp @@ -5,7 +5,7 @@ * found in the LICENSE file. */ -#include "SkInsetConvexPolygon.h" +#include "SkOffsetPolygon.h" #include "SkPointPriv.h" #include "SkTemplates.h" diff --git a/src/utils/SkInsetConvexPolygon.h b/src/utils/SkOffsetPolygon.h index 1d5a19c176..1d5a19c176 100755 --- a/src/utils/SkInsetConvexPolygon.h +++ b/src/utils/SkOffsetPolygon.h diff --git a/src/utils/SkShadowTessellator.cpp b/src/utils/SkShadowTessellator.cpp index 8815ce646d..75e4059222 100755 --- a/src/utils/SkShadowTessellator.cpp +++ b/src/utils/SkShadowTessellator.cpp @@ -9,7 +9,7 @@ #include "SkColorData.h" #include "SkDrawShadowInfo.h" #include "SkGeometry.h" -#include "SkInsetConvexPolygon.h" +#include "SkOffsetPolygon.h" #include "SkPath.h" #include "SkPoint3.h" #include "SkPointPriv.h" diff --git a/tests/InsetConvexPolyTest.cpp b/tests/InsetConvexPolyTest.cpp index 9c1349c8ec..433cf239e6 100644 --- a/tests/InsetConvexPolyTest.cpp +++ b/tests/InsetConvexPolyTest.cpp @@ -5,7 +5,7 @@ * found in the LICENSE file. */ #include "Test.h" -#include "SkInsetConvexPolygon.h" +#include "SkOffsetPolygon.h" static bool is_convex(const SkTDArray<SkPoint>& poly) { if (poly.count() < 3) { |