aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/quadpaths.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/quadpaths.cpp')
-rw-r--r--gm/quadpaths.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gm/quadpaths.cpp b/gm/quadpaths.cpp
index 359f62dd39..0578d2ea96 100644
--- a/gm/quadpaths.cpp
+++ b/gm/quadpaths.cpp
@@ -47,7 +47,7 @@ protected:
SkPath::FillType fFill;
const char* fName;
};
- static const FillAndName gFills[] = {
+ constexpr FillAndName gFills[] = {
{SkPath::kWinding_FillType, "Winding"},
{SkPath::kEvenOdd_FillType, "Even / Odd"},
{SkPath::kInverseWinding_FillType, "Inverse Winding"},
@@ -57,7 +57,7 @@ protected:
SkPaint::Style fStyle;
const char* fName;
};
- static const StyleAndName gStyles[] = {
+ constexpr StyleAndName gStyles[] = {
{SkPaint::kFill_Style, "Fill"},
{SkPaint::kStroke_Style, "Stroke"},
{SkPaint::kStrokeAndFill_Style, "Stroke And Fill"},
@@ -67,7 +67,7 @@ protected:
SkPaint::Join fJoin;
const char* fName;
};
- static const CapAndName gCaps[] = {
+ constexpr CapAndName gCaps[] = {
{SkPaint::kButt_Cap, SkPaint::kBevel_Join, "Butt"},
{SkPaint::kRound_Cap, SkPaint::kRound_Join, "Round"},
{SkPaint::kSquare_Cap, SkPaint::kBevel_Join, "Square"}
@@ -190,7 +190,7 @@ protected:
SkPath::FillType fFill;
const char* fName;
};
- static const FillAndName gFills[] = {
+ constexpr FillAndName gFills[] = {
{SkPath::kWinding_FillType, "Winding"},
{SkPath::kEvenOdd_FillType, "Even / Odd"},
{SkPath::kInverseWinding_FillType, "Inverse Winding"},
@@ -200,7 +200,7 @@ protected:
SkPaint::Style fStyle;
const char* fName;
};
- static const StyleAndName gStyles[] = {
+ constexpr StyleAndName gStyles[] = {
{SkPaint::kFill_Style, "Fill"},
{SkPaint::kStroke_Style, "Stroke"},
{SkPaint::kStrokeAndFill_Style, "Stroke And Fill"},
@@ -210,7 +210,7 @@ protected:
SkPaint::Join fJoin;
const char* fName;
};
- static const CapAndName gCaps[] = {
+ constexpr CapAndName gCaps[] = {
{SkPaint::kButt_Cap, SkPaint::kBevel_Join, "Butt"},
{SkPaint::kRound_Cap, SkPaint::kRound_Join, "Round"},
{SkPaint::kSquare_Cap, SkPaint::kBevel_Join, "Square"}