@@ -105,7 +105,7 @@ DEFINE_SET_ENUM_OP(Join)
105105struct SetStyleOp final : DLOp {
106106 static const auto kType = DisplayListOpType::kSetStyle ;
107107
108- SetStyleOp (SkPaint::Style style) : style(style) {}
108+ explicit SetStyleOp (SkPaint::Style style) : style(style) {}
109109
110110 const SkPaint::Style style;
111111
@@ -115,7 +115,7 @@ struct SetStyleOp final : DLOp {
115115struct SetStrokeWidthOp final : DLOp {
116116 static const auto kType = DisplayListOpType::kSetStrokeWidth ;
117117
118- SetStrokeWidthOp (SkScalar width) : width(width) {}
118+ explicit SetStrokeWidthOp (SkScalar width) : width(width) {}
119119
120120 const SkScalar width;
121121
@@ -127,7 +127,7 @@ struct SetStrokeWidthOp final : DLOp {
127127struct SetStrokeMiterOp final : DLOp {
128128 static const auto kType = DisplayListOpType::kSetStrokeMiter ;
129129
130- SetStrokeMiterOp (SkScalar limit) : limit(limit) {}
130+ explicit SetStrokeMiterOp (SkScalar limit) : limit(limit) {}
131131
132132 const SkScalar limit;
133133
@@ -140,7 +140,7 @@ struct SetStrokeMiterOp final : DLOp {
140140struct SetColorOp final : DLOp {
141141 static const auto kType = DisplayListOpType::kSetColor ;
142142
143- SetColorOp (SkColor color) : color(color) {}
143+ explicit SetColorOp (SkColor color) : color(color) {}
144144
145145 const SkColor color;
146146
@@ -150,7 +150,7 @@ struct SetColorOp final : DLOp {
150150struct SetBlendModeOp final : DLOp {
151151 static const auto kType = DisplayListOpType::kSetBlendMode ;
152152
153- SetBlendModeOp (SkBlendMode mode) : mode(mode) {}
153+ explicit SetBlendModeOp (SkBlendMode mode) : mode(mode) {}
154154
155155 const SkBlendMode mode;
156156
@@ -224,7 +224,7 @@ struct SaveOp final : DLOp {
224224struct SaveLayerOp final : DLOp {
225225 static const auto kType = DisplayListOpType::kSaveLayer ;
226226
227- SaveLayerOp (bool with_paint) : with_paint(with_paint) {}
227+ explicit SaveLayerOp (bool with_paint) : with_paint(with_paint) {}
228228
229229 bool with_paint;
230230
@@ -283,7 +283,7 @@ struct ScaleOp final : DLOp {
283283struct RotateOp final : DLOp {
284284 static const auto kType = DisplayListOpType::kRotate ;
285285
286- RotateOp (SkScalar degrees) : degrees(degrees) {}
286+ explicit RotateOp (SkScalar degrees) : degrees(degrees) {}
287287
288288 const SkScalar degrees;
289289
@@ -454,7 +454,7 @@ DEFINE_DRAW_1ARG_OP(RRect, SkRRect, rrect)
454454struct DrawPathOp final : DLOp {
455455 static const auto kType = DisplayListOpType::kDrawPath ;
456456
457- DrawPathOp (SkPath path) : path(path) {}
457+ explicit DrawPathOp (SkPath path) : path(path) {}
458458
459459 const SkPath path;
460460
@@ -804,7 +804,7 @@ struct DrawSkPictureMatrixOp final : DLOp {
804804struct DrawDisplayListOp final : DLOp {
805805 static const auto kType = DisplayListOpType::kDrawDisplayList ;
806806
807- DrawDisplayListOp (const sk_sp<DisplayList> display_list)
807+ explicit DrawDisplayListOp (const sk_sp<DisplayList> display_list)
808808 : display_list(std::move(display_list)) {}
809809
810810 sk_sp<DisplayList> display_list;
0 commit comments