diff options
author | bsalomon <bsalomon@google.com> | 2016-08-25 12:29:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-25 12:29:24 -0700 |
commit | 21af9ca1b1f54d9ba1de055aa8475928d5c8ecdf (patch) | |
tree | 2d1d5dae4e72fd6066aff3ce812cd387922c5baa /src/core/SkPathPriv.h | |
parent | 29b2563afb1677515739f1d24fb27733626eca92 (diff) |
Respecify SkCanvas::drawArc, consolidate conversion to SkPath, add GM for oddball drawArcs
Allows the arc to wind more than 360 degrees when useCenter is true, specs that nothing draws
if the oval is empty or the sweep angle is 0.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2281653002
Review-Url: https://codereview.chromium.org/2281653002
Diffstat (limited to 'src/core/SkPathPriv.h')
-rw-r--r-- | src/core/SkPathPriv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/SkPathPriv.h b/src/core/SkPathPriv.h index 8689dee197..60b0f2a155 100644 --- a/src/core/SkPathPriv.h +++ b/src/core/SkPathPriv.h @@ -91,6 +91,13 @@ public: */ static bool IsSimpleClosedRect(const SkPath& path, SkRect* rect, SkPath::Direction* direction, unsigned* start); + + /** + * Creates a path from arc params using the semantics of SkCanvas::drawArc. This function + * assumes empty ovals and zero sweeps have already been filtered out. + */ + static void CreateDrawArcPath(SkPath* path, const SkRect& oval, SkScalar startAngle, + SkScalar sweepAngle, bool useCenter, bool isFillNoPathEffect); }; #endif |