diff options
author | Jim Van Verth <jvanverth@google.com> | 2018-07-11 14:09:09 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-11 18:37:38 +0000 |
commit | 061cc21b61e04ecb6120a6e66ea04f89b82200c2 (patch) | |
tree | a8e8bfd1122148e3806252db80a16ca07161fb14 /src/utils/SkPolyUtils.h | |
parent | 3ae98ffc96fe410f8594dbd7160c05c5ebd6de57 (diff) |
Add more tests for PolyUtils
* Add fuzzer
* Add bench tests
* Add additional unit test
* Fix some bugs these exposed.
Bug: skia:
Change-Id: I6c587c92cb6cff32ab8300020b78f9f247d2bf64
Reviewed-on: https://skia-review.googlesource.com/139169
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/utils/SkPolyUtils.h')
-rwxr-xr-x | src/utils/SkPolyUtils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/SkPolyUtils.h b/src/utils/SkPolyUtils.h index 9c25a078ff..b753a91141 100755 --- a/src/utils/SkPolyUtils.h +++ b/src/utils/SkPolyUtils.h @@ -113,8 +113,9 @@ bool SkOffsetSegment(const SkPoint& p0, const SkPoint& p1, SkScalar d0, SkScalar * @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. + * @return true for success, false otherwise */ -void SkComputeRadialSteps(const SkVector& offset0, const SkVector& offset1, SkScalar r, +bool SkComputeRadialSteps(const SkVector& offset0, const SkVector& offset1, SkScalar r, SkScalar* rotSin, SkScalar* rotCos, int* n); /** |