diff options
author | Brian Salomon <bsalomon@google.com> | 2018-04-25 11:21:39 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-25 18:54:07 +0000 |
commit | 8a98bc96748d1bdaf9c2d8cfa0b672e3a035973d (patch) | |
tree | f3d3147435661928de22456a7762d3dc20a2c71e /src/core/SkPathPriv.h | |
parent | cfd650e43ff1da223129aac36f222daaf1cf61e5 (diff) |
Revert "Revert "Add arcs as a specialized geometry to GrShape.""
This reverts commit af88ec37124846a0168a4ab061bf10cc6030c2d6.
Bug: skia:7794
Change-Id: I2d0e1d7b4e025481241d823b09f5de5d0f1a13eb
Reviewed-on: https://skia-review.googlesource.com/123627
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/core/SkPathPriv.h')
-rw-r--r-- | src/core/SkPathPriv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/SkPathPriv.h b/src/core/SkPathPriv.h index ede79f60d9..3ee1f83d06 100644 --- a/src/core/SkPathPriv.h +++ b/src/core/SkPathPriv.h @@ -106,6 +106,12 @@ public: SkScalar sweepAngle, bool useCenter, bool isFillNoPathEffect); /** + * Determines whether an arc produced by CreateDrawArcPath will be convex. Assumes a non-empty + * oval. + */ + static bool DrawArcIsConvex(SkScalar sweepAngle, bool useCenter, bool isFillNoPathEffect); + + /** * Returns a C++11-iterable object that traverses a path's verbs in order. e.g: * * for (SkPath::Verb verb : SkPathPriv::Verbs(path)) { |