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

Unified Diff: gm/imagesource2.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/imagescalealigned.cpp ('k') | gm/imagetoyuvplanes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imagesource2.cpp
diff --git a/gm/imagesource2.cpp b/gm/imagesource2.cpp
index ba6af46cfbd547bc4405ff259726ef35a1f33ff1..70a91daabcf009c17c335094b946209d4c8093c3 100644
--- a/gm/imagesource2.cpp
+++ b/gm/imagesource2.cpp
@@ -31,7 +31,7 @@ protected:
// Create an image with high frequency vertical stripes
void onOnceBeforeDraw() override {
- static const SkPMColor gColors[] = {
+ constexpr SkPMColor gColors[] = {
SK_ColorRED, SK_ColorGRAY,
SK_ColorGREEN, SK_ColorGRAY,
SK_ColorBLUE, SK_ColorGRAY,
@@ -73,7 +73,7 @@ protected:
}
private:
- static const int kImageSize = 503;
+ static constexpr int kImageSize = 503;
SkString fSuffix;
SkFilterQuality fFilter;
« no previous file with comments | « gm/imagescalealigned.cpp ('k') | gm/imagetoyuvplanes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698