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:
parent
5a4b18c6f2
commit
7cffe9733b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user