Revert "Revert "Create new inset algorithm for spot shadows""
This reverts commit e7c85c45c4c0a97adc6711bb12ecacc36af4ba11.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> 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>
>
TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,msarett@google.com,robertphillips@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Change-Id: Ib3998300606d3a2e2fb3a14b2088cfad48363501
Reviewed-on: https://skia-review.googlesource.com/10113
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-03-24 16:07:20 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2017 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2018-04-03 14:00:37 +00:00
|
|
|
#ifndef SkOffsetPolygon_DEFINED
|
|
|
|
#define SkOffsetPolygon_DEFINED
|
Revert "Revert "Create new inset algorithm for spot shadows""
This reverts commit e7c85c45c4c0a97adc6711bb12ecacc36af4ba11.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> 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>
>
TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,msarett@google.com,robertphillips@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Change-Id: Ib3998300606d3a2e2fb3a14b2088cfad48363501
Reviewed-on: https://skia-review.googlesource.com/10113
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-03-24 16:07:20 +00:00
|
|
|
|
2017-04-11 19:29:14 +00:00
|
|
|
#include <functional>
|
|
|
|
|
Revert "Revert "Create new inset algorithm for spot shadows""
This reverts commit e7c85c45c4c0a97adc6711bb12ecacc36af4ba11.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> 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>
>
TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,msarett@google.com,robertphillips@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Change-Id: Ib3998300606d3a2e2fb3a14b2088cfad48363501
Reviewed-on: https://skia-review.googlesource.com/10113
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-03-24 16:07:20 +00:00
|
|
|
#include "SkTDArray.h"
|
|
|
|
#include "SkPoint.h"
|
|
|
|
|
2017-04-11 19:29:14 +00:00
|
|
|
/**
|
2018-06-14 13:09:18 +00:00
|
|
|
* Generates a polygon that is inset a variable distance (controlled by offsetDistanceFunc)
|
|
|
|
* from the boundary of a given convex polygon.
|
Revert "Revert "Create new inset algorithm for spot shadows""
This reverts commit e7c85c45c4c0a97adc6711bb12ecacc36af4ba11.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> 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>
>
TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,msarett@google.com,robertphillips@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Change-Id: Ib3998300606d3a2e2fb3a14b2088cfad48363501
Reviewed-on: https://skia-review.googlesource.com/10113
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-03-24 16:07:20 +00:00
|
|
|
*
|
|
|
|
* @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.
|
2018-06-14 13:09:18 +00:00
|
|
|
* @param insetDistanceFunc How far we wish to inset the polygon for a given position.
|
2017-04-11 19:29:14 +00:00
|
|
|
* This should return a positive value.
|
Revert "Revert "Create new inset algorithm for spot shadows""
This reverts commit e7c85c45c4c0a97adc6711bb12ecacc36af4ba11.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> 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>
>
TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,msarett@google.com,robertphillips@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Change-Id: Ib3998300606d3a2e2fb3a14b2088cfad48363501
Reviewed-on: https://skia-review.googlesource.com/10113
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-03-24 16:07:20 +00:00
|
|
|
* @param insetPolygon The resulting inset polygon, if any.
|
|
|
|
* @return true if an inset polygon exists, false otherwise.
|
|
|
|
*/
|
|
|
|
bool SkInsetConvexPolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize,
|
2018-06-14 13:09:18 +00:00
|
|
|
std::function<SkScalar(const SkPoint&)> insetDistanceFunc,
|
2017-04-11 19:29:14 +00:00
|
|
|
SkTDArray<SkPoint>* insetPolygon);
|
|
|
|
|
2018-06-14 13:09:18 +00:00
|
|
|
/**
|
|
|
|
* Generates a polygon that is inset a constant 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 inset 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.
|
|
|
|
*/
|
2017-04-11 19:29:14 +00:00
|
|
|
inline bool SkInsetConvexPolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize,
|
2018-04-03 14:00:37 +00:00
|
|
|
SkScalar inset, SkTDArray<SkPoint>* insetPolygon) {
|
2017-04-11 19:29:14 +00:00
|
|
|
return SkInsetConvexPolygon(inputPolygonVerts, inputPolygonSize,
|
2018-06-14 13:09:18 +00:00
|
|
|
[inset](const SkPoint&) { return inset; },
|
2017-04-11 19:29:14 +00:00
|
|
|
insetPolygon);
|
|
|
|
}
|
|
|
|
|
2018-04-03 14:00:37 +00:00
|
|
|
/**
|
2018-06-14 13:09:18 +00:00
|
|
|
* Generates a simple polygon (if possible) that is offset a variable distance (controlled by
|
|
|
|
* offsetDistanceFunc) from the boundary of a given simple polygon.
|
2018-06-28 20:26:50 +00:00
|
|
|
* The input polygon must be simple and have no coincident vertices or collinear edges.
|
2018-04-03 14:00:37 +00:00
|
|
|
*
|
|
|
|
* @param inputPolygonVerts Array of points representing the vertices of the original polygon.
|
|
|
|
* @param inputPolygonSize Number of vertices in the original polygon.
|
2018-06-14 13:09:18 +00:00
|
|
|
* @param offsetDistanceFunc How far we wish to offset the polygon for a given position.
|
|
|
|
* Positive values indicate insetting, negative values outsetting.
|
2018-04-03 14:00:37 +00:00
|
|
|
* @param offsetPolgon The resulting offset polygon, if any.
|
2018-04-10 15:24:11 +00:00
|
|
|
* @param polygonIndices The indices of the original polygon that map to the new one.
|
2018-04-03 14:00:37 +00:00
|
|
|
* @return true if an offset simple polygon exists, false otherwise.
|
|
|
|
*/
|
|
|
|
bool SkOffsetSimplePolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize,
|
2018-06-14 13:09:18 +00:00
|
|
|
std::function<SkScalar(const SkPoint&)> offsetDistanceFunc,
|
|
|
|
SkTDArray<SkPoint>* offsetPolygon,
|
2018-04-10 15:24:11 +00:00
|
|
|
SkTDArray<int>* polygonIndices = nullptr);
|
2018-04-03 14:00:37 +00:00
|
|
|
|
2018-06-14 13:09:18 +00:00
|
|
|
/**
|
|
|
|
* Generates a simple polygon (if possible) that is offset a constant distance from the boundary
|
|
|
|
* of a given simple polygon.
|
2018-06-28 20:26:50 +00:00
|
|
|
* The input polygon must be simple and have no coincident vertices or collinear edges.
|
2018-06-14 13:09:18 +00:00
|
|
|
*
|
|
|
|
* @param inputPolygonVerts Array of points representing the vertices of the original polygon.
|
|
|
|
* @param inputPolygonSize Number of vertices in the original polygon.
|
|
|
|
* @param offset How far we wish to offset the polygon.
|
|
|
|
* Positive values indicate insetting, negative values outsetting.
|
|
|
|
* @param offsetPolgon The resulting offset polygon, if any.
|
|
|
|
* @param polygonIndices The indices of the original polygon that map to the new one.
|
|
|
|
* @return true if an offset simple polygon exists, false otherwise.
|
|
|
|
*/
|
|
|
|
inline bool SkOffsetSimplePolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize,
|
|
|
|
SkScalar offset, SkTDArray<SkPoint>* offsetPolygon,
|
|
|
|
SkTDArray<int>* polygonIndices = nullptr) {
|
|
|
|
return SkOffsetSimplePolygon(inputPolygonVerts, inputPolygonSize,
|
|
|
|
[offset](const SkPoint&) { return offset; },
|
|
|
|
offsetPolygon, polygonIndices);
|
|
|
|
}
|
|
|
|
|
2017-04-11 19:29:14 +00:00
|
|
|
/**
|
|
|
|
* Offset a segment by the given distance at each point.
|
|
|
|
* Uses the outer tangents of two circles centered on each endpoint.
|
|
|
|
* See: https://en.wikipedia.org/wiki/Tangent_lines_to_circles
|
|
|
|
*
|
|
|
|
* @param p0 First endpoint.
|
|
|
|
* @param p1 Second endpoint.
|
|
|
|
* @param d0 Offset distance from first endpoint.
|
|
|
|
* @param d1 Offset distance from second endpoint.
|
|
|
|
* @param side Indicates whether we want to offset to the left (1) or right (-1) side of segment.
|
|
|
|
* @param offset0 First endpoint of offset segment.
|
|
|
|
* @param offset1 Second endpoint of offset segment.
|
|
|
|
* @return true if an offset segment exists, false otherwise.
|
|
|
|
*/
|
|
|
|
bool SkOffsetSegment(const SkPoint& p0, const SkPoint& p1, SkScalar d0, SkScalar d1,
|
|
|
|
int side, SkPoint* offset0, SkPoint* offset1);
|
Revert "Revert "Create new inset algorithm for spot shadows""
This reverts commit e7c85c45c4c0a97adc6711bb12ecacc36af4ba11.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> 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>
>
TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,msarett@google.com,robertphillips@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Change-Id: Ib3998300606d3a2e2fb3a14b2088cfad48363501
Reviewed-on: https://skia-review.googlesource.com/10113
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-03-24 16:07:20 +00:00
|
|
|
|
2018-06-28 20:26:50 +00:00
|
|
|
/**
|
|
|
|
* Compute the number of points needed for a circular join when offsetting a vertex.
|
|
|
|
* The lengths of offset0 and offset1 don't have to equal r -- only the direction matters.
|
|
|
|
* The segment lengths will be approximately four pixels.
|
|
|
|
*
|
|
|
|
* @param offset0 Starting offset vector direction.
|
|
|
|
* @param offset1 Ending offset vector direction.
|
|
|
|
* @param r Length of offset.
|
|
|
|
* @param rotSin Sine of rotation delta per step.
|
|
|
|
* @param rotCos Cosine of rotation delta per step.
|
|
|
|
* @param n Number of steps to fill out the arc.
|
2018-07-11 18:09:09 +00:00
|
|
|
* @return true for success, false otherwise
|
2018-06-28 20:26:50 +00:00
|
|
|
*/
|
2018-07-11 18:09:09 +00:00
|
|
|
bool SkComputeRadialSteps(const SkVector& offset0, const SkVector& offset1, SkScalar r,
|
2018-06-28 20:26:50 +00:00
|
|
|
SkScalar* rotSin, SkScalar* rotCos, int* n);
|
|
|
|
|
2018-07-03 20:12:39 +00:00
|
|
|
/**
|
|
|
|
* Determine winding direction for a polygon.
|
|
|
|
* The input polygon must be simple or the result will be meaningless.
|
|
|
|
*
|
|
|
|
* @param polygonVerts Array of points representing the vertices of the polygon.
|
|
|
|
* @param polygonSize Number of vertices in the polygon.
|
|
|
|
* @return 1 for cw, -1 for ccw, and 0 if zero signed area (either degenerate or self-intersecting).
|
|
|
|
* The y-axis is assumed to be pointing down.
|
|
|
|
*/
|
|
|
|
int SkGetPolygonWinding(const SkPoint* polygonVerts, int polygonSize);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Determine whether a polygon is convex or not.
|
|
|
|
*
|
|
|
|
* @param polygonVerts Array of points representing the vertices of the polygon.
|
|
|
|
* @param polygonSize Number of vertices in the polygon.
|
|
|
|
* @return true if the polygon is convex, false otherwise.
|
|
|
|
*/
|
|
|
|
bool SkIsConvexPolygon(const SkPoint* polygonVerts, int polygonSize);
|
|
|
|
|
2018-06-28 20:26:50 +00:00
|
|
|
/**
|
|
|
|
* Determine whether a polygon is simple (i.e., not self-intersecting) or not.
|
2018-07-03 20:12:39 +00:00
|
|
|
* The input polygon must have no coincident vertices or the test will fail.
|
2018-06-28 20:26:50 +00:00
|
|
|
*
|
|
|
|
* @param polygonVerts Array of points representing the vertices of the polygon.
|
|
|
|
* @param polygonSize Number of vertices in the polygon.
|
|
|
|
* @return true if the polygon is simple, false otherwise.
|
|
|
|
*/
|
|
|
|
bool SkIsSimplePolygon(const SkPoint* polygonVerts, int polygonSize);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Compute indices to triangulate the given polygon.
|
|
|
|
* The input polygon must be simple (i.e. it is not self-intersecting)
|
|
|
|
* and have no coincident vertices or collinear edges.
|
|
|
|
*
|
|
|
|
* @param polygonVerts Array of points representing the vertices of the polygon.
|
|
|
|
* @param indexMap Mapping from index in the given array to the final index in the triangulation.
|
|
|
|
* @param polygonSize Number of vertices in the polygon.
|
|
|
|
* @param triangleIndices Indices of the resulting triangulation.
|
|
|
|
* @return true if successful, false otherwise.
|
|
|
|
*/
|
|
|
|
bool SkTriangulateSimplePolygon(const SkPoint* polygonVerts, uint16_t* indexMap, int polygonSize,
|
|
|
|
SkTDArray<uint16_t>* triangleIndices);
|
|
|
|
|
Revert "Revert "Create new inset algorithm for spot shadows""
This reverts commit e7c85c45c4c0a97adc6711bb12ecacc36af4ba11.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> 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>
>
TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,msarett@google.com,robertphillips@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Change-Id: Ib3998300606d3a2e2fb3a14b2088cfad48363501
Reviewed-on: https://skia-review.googlesource.com/10113
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-03-24 16:07:20 +00:00
|
|
|
#endif
|