Index: gm/dstreadshuffle.cpp |
diff --git a/gm/dstreadshuffle.cpp b/gm/dstreadshuffle.cpp |
index 4f0f071b0a8e6d59d6f16e5c7ce1cd24dd664f19..47c70563b5388f23956f53258e8689d29f791b0e 100644 |
--- a/gm/dstreadshuffle.cpp |
+++ b/gm/dstreadshuffle.cpp |
@@ -44,8 +44,8 @@ protected: |
void drawShape(SkCanvas* canvas, |
SkPaint* paint, |
ShapeType type) { |
- static const SkRect kRect = SkRect::MakeXYWH(SkIntToScalar(-50), SkIntToScalar(-50), |
- SkIntToScalar(75), SkIntToScalar(105)); |
+ const SkRect kRect = SkRect::MakeXYWH(SkIntToScalar(-50), SkIntToScalar(-50), |
+ SkIntToScalar(75), SkIntToScalar(105)); |
switch (type) { |
case kCircle_ShapeType: |
canvas->drawCircle(0, 0, 50, *paint); |
@@ -183,8 +183,8 @@ private: |
SkAutoTUnref<SkShader> fBG; |
SkPath fConcavePath; |
SkPath fConvexPath; |
- static const int kWidth = 900; |
- static const int kHeight = 400; |
+ static constexpr int kWidth = 900; |
+ static constexpr int kHeight = 400; |
typedef GM INHERITED; |
}; |