Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1009)

Unified Diff: gm/thinstrokedrects.cpp

Issue 2300623005: Replace a lot of 'static const' with 'constexpr' or 'const'. (Closed)
Patch Set: small msvc concession Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/thinrects.cpp ('k') | gm/tilemodes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/thinstrokedrects.cpp
diff --git a/gm/thinstrokedrects.cpp b/gm/thinstrokedrects.cpp
index 73e1f529df31e2362a13e71a5481318b86097150..a4f2f1318b13ad52c643c858a355b57df3f06e4d 100644
--- a/gm/thinstrokedrects.cpp
+++ b/gm/thinstrokedrects.cpp
@@ -32,10 +32,10 @@ protected:
paint.setStyle(SkPaint::kStroke_Style);
paint.setAntiAlias(true);
- static const SkRect rect = { 0, 0, 10, 10 };
- static const SkRect rect2 = { 0, 0, 20, 20 };
+ constexpr SkRect rect = { 0, 0, 10, 10 };
+ constexpr SkRect rect2 = { 0, 0, 20, 20 };
- static const SkScalar gStrokeWidths[] = {
+ constexpr SkScalar gStrokeWidths[] = {
4, 2, 1, 0.5f, 0.25f, 0.125f, 0
};
« no previous file with comments | « gm/thinrects.cpp ('k') | gm/tilemodes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698