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

Unified Diff: gm/pictureimagegenerator.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/perspshaders.cpp ('k') | gm/pictureshadertile.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/pictureimagegenerator.cpp
diff --git a/gm/pictureimagegenerator.cpp b/gm/pictureimagegenerator.cpp
index 60e979fc3c063ef2982d0c739d97c04a385e5420..95efbb2055be298dddca0caebd746a5f18e10d56 100644
--- a/gm/pictureimagegenerator.cpp
+++ b/gm/pictureimagegenerator.cpp
@@ -16,10 +16,10 @@
#include "SkPictureRecorder.h"
static void draw_vector_logo(SkCanvas* canvas, const SkRect& viewBox) {
- static const char kSkiaStr[] = "SKIA";
- static const SkScalar kGradientPad = .1f;
- static const SkScalar kVerticalSpacing = 0.25f;
- static const SkScalar kAccentScale = 1.20f;
+ constexpr char kSkiaStr[] = "SKIA";
+ constexpr SkScalar kGradientPad = .1f;
+ constexpr SkScalar kVerticalSpacing = 0.25f;
+ constexpr SkScalar kAccentScale = 1.20f;
SkPaint paint;
paint.setAntiAlias(true);
« no previous file with comments | « gm/perspshaders.cpp ('k') | gm/pictureshadertile.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698