aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkInsetConvexPolygon.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-03-24 16:00:35 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-24 16:00:55 +0000
commite7c85c45c4c0a97adc6711bb12ecacc36af4ba11 (patch)
tree56656a9d1ee3912b7c43c472632482b594a2f325 /src/utils/SkInsetConvexPolygon.h
parentadf7b330bde6ddb03c888143f16cb3b04c074ebd (diff)
Revert "Create new inset algorithm for spot shadows"
This reverts commit e5f5bf5175e426ebb6aa234f4387831c898f20ad. Reason for revert: Breaking a bunch of bots. e.g: https://luci-milo.appspot.com/swarming/task/3519cae0a03c7b10/steps/dm/0/stdout Original change's description: > Create new inset algorithm for spot shadows > > BUG=skia: > > Change-Id: If7c67c2a5b9beea28f86d13362a5156b46394d0e > Reviewed-on: https://skia-review.googlesource.com/9875 > Commit-Queue: Ravi Mistry <rmistry@google.com> > Reviewed-by: Brian Salomon <bsalomon@google.com> > Reviewed-by: Robert Phillips <robertphillips@google.com> > TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,robertphillips@google.com,msarett@google.com,reviews@skia.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Change-Id: I3d119ff631dbb1a41f873b9c8753d542ec91254e Reviewed-on: https://skia-review.googlesource.com/10112 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/utils/SkInsetConvexPolygon.h')
-rwxr-xr-xsrc/utils/SkInsetConvexPolygon.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/utils/SkInsetConvexPolygon.h b/src/utils/SkInsetConvexPolygon.h
deleted file mode 100755
index 3ab7558a25..0000000000
--- a/src/utils/SkInsetConvexPolygon.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright 2017 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkInsetConvexPolygon_DEFINED
-#define SkInsetConvexPolygon_DEFINED
-
-#include "SkTDArray.h"
-#include "SkPoint.h"
-
- /**
- * Generates a polygon that is inset a given distance from the boundary of a given convex polygon.
- *
- * @param inputPolygonVerts Array of points representing the vertices of the original polygon.
- * It should be convex and have no coincident points.
- * @param inputPolygonSize Number of vertices in the original polygon.
- * @param insetDistance How far we wish to inset the polygon. This should be a positive value.
- * @param insetPolygon The resulting inset polygon, if any.
- * @return true if an inset polygon exists, false otherwise.
- */
-bool SkInsetConvexPolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize,
- SkScalar insetDistance, SkTDArray<SkPoint>* insetPolygon);
-
-#endif