diff options
author | hstern <hstern@google.com> | 2016-08-10 16:36:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-10 16:36:11 -0700 |
commit | 7cffe9733bdaaea040df6ba6303f3c82c654815e (patch) | |
tree | da4d5fe2daecc97228a6399b06f7352f2e99833d /include/core/SkPathEffect.h | |
parent | 5a4b18c6f27fb010954e6435ddf22b85a3b84b94 (diff) |
Add constructor to DashInfo to enable initializer lists
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2230143003
Review-Url: https://codereview.chromium.org/2230143003
Diffstat (limited to 'include/core/SkPathEffect.h')
-rw-r--r-- | include/core/SkPathEffect.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkPathEffect.h b/include/core/SkPathEffect.h index 6d3ed85637..c891f6db22 100644 --- a/include/core/SkPathEffect.h +++ b/include/core/SkPathEffect.h @@ -118,6 +118,8 @@ public: struct DashInfo { DashInfo() : fIntervals(NULL), fCount(0), fPhase(0) {} + DashInfo(SkScalar* intervals, int32_t count, SkScalar phase) + : fIntervals(intervals), fCount(count), fPhase(phase) {} SkScalar* fIntervals; //!< Length of on/off intervals for dashed lines // Even values represent ons, and odds offs |