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

Unified Diff: gm/strokedlines.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/stroke_rect_shader.cpp ('k') | gm/strokerect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/strokedlines.cpp
diff --git a/gm/strokedlines.cpp b/gm/strokedlines.cpp
index f0eb6b45cf45b3093c5efef7dd97012dfa6c789c..7bcb3fb5789a656b2f529fd7915f437102922489 100644
--- a/gm/strokedlines.cpp
+++ b/gm/strokedlines.cpp
@@ -13,12 +13,12 @@
#include "SkPath.h"
#include "SkPoint3.h"
-static const int kNumColumns = 6;
-static const int kNumRows = 8;
-static const int kRadius = 40; // radius of the snowflake
-static const int kPad = 5; // padding on both sides of the snowflake
-static const int kNumSpokes = 6;
-static const SkScalar kStrokeWidth = 5.0f;
+constexpr int kNumColumns = 6;
+constexpr int kNumRows = 8;
+constexpr int kRadius = 40; // radius of the snowflake
+constexpr int kPad = 5; // padding on both sides of the snowflake
+constexpr int kNumSpokes = 6;
+constexpr SkScalar kStrokeWidth = 5.0f;
static void draw_fins(SkCanvas* canvas, const SkPoint& offset, float angle, const SkPaint& paint) {
SkScalar cos, sin;
« no previous file with comments | « gm/stroke_rect_shader.cpp ('k') | gm/strokerect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698