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
This commit is contained in:
hstern 2016-08-10 16:36:11 -07:00 committed by Commit bot
parent 5a4b18c6f2
commit 7cffe9733b

View File

@ -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