aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPathEffect.h
diff options
context:
space:
mode:
authorGravatar hstern <hstern@google.com>2016-08-10 16:36:11 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-10 16:36:11 -0700
commit7cffe9733bdaaea040df6ba6303f3c82c654815e (patch)
treeda4d5fe2daecc97228a6399b06f7352f2e99833d /include/core/SkPathEffect.h
parent5a4b18c6f27fb010954e6435ddf22b85a3b84b94 (diff)
Add constructor to DashInfo to enable initializer lists
Diffstat (limited to 'include/core/SkPathEffect.h')
-rw-r--r--include/core/SkPathEffect.h2
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