Index: gm/strokes.cpp |
diff --git a/gm/strokes.cpp b/gm/strokes.cpp |
index afbe5ee4da60d5ace2f298258de649f301cf7e9d..218f845c6e74029ce1fde363c8f765297151431b 100644 |
--- a/gm/strokes.cpp |
+++ b/gm/strokes.cpp |
@@ -15,8 +15,8 @@ |
#define H 400 |
#define N 50 |
-static const SkScalar SW = SkIntToScalar(W); |
-static const SkScalar SH = SkIntToScalar(H); |
+constexpr SkScalar SW = SkIntToScalar(W); |
+constexpr SkScalar SH = SkIntToScalar(H); |
static void rnd_rect(SkRect* r, SkPaint* paint, SkRandom& rand) { |
SkScalar x = rand.nextUScalar1() * W; |