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

Unified Diff: gm/tallstretchedbitmaps.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/strokes.cpp ('k') | gm/texdata.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/tallstretchedbitmaps.cpp
diff --git a/gm/tallstretchedbitmaps.cpp b/gm/tallstretchedbitmaps.cpp
index f22f2d2663298fe15ee983849eaf071ffce1e949..b70ae3dc3519ee9f029aaec352f7f2668c5159e1 100644
--- a/gm/tallstretchedbitmaps.cpp
+++ b/gm/tallstretchedbitmaps.cpp
@@ -12,12 +12,12 @@
#include "SkRandom.h"
int make_bm(SkBitmap* bm, int height) {
- static const int kRadius = 22;
- static const int kMargin = 8;
- static const SkScalar kStartAngle = 0;
- static const SkScalar kDAngle = 25;
- static const SkScalar kSweep = 320;
- static const SkScalar kThickness = 8;
+ constexpr int kRadius = 22;
+ constexpr int kMargin = 8;
+ constexpr SkScalar kStartAngle = 0;
+ constexpr SkScalar kDAngle = 25;
+ constexpr SkScalar kSweep = 320;
+ constexpr SkScalar kThickness = 8;
int count = (height / (2 * kRadius + kMargin));
height = count * (2 * kRadius + kMargin);
« no previous file with comments | « gm/strokes.cpp ('k') | gm/texdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698