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

Unified Diff: gm/patchgrid.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/occludedrrectblur.cpp ('k') | gm/pathcontourstart.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/patchgrid.cpp
diff --git a/gm/patchgrid.cpp b/gm/patchgrid.cpp
index 962c1a9dffed7f43dc2eed9961dfb89277683960..a36e58f72794e6cfca218afd1fc670b2c9e9caec 100644
--- a/gm/patchgrid.cpp
+++ b/gm/patchgrid.cpp
@@ -105,8 +105,8 @@ protected:
{{50,325},{150,325},{250,325},{350,325},{450,325}}
};
- static const int kRows = 3;
- static const int kCols = 4;
+ constexpr int kRows = 3;
+ constexpr int kCols = 4;
canvas->scale(3, 3);
SkPatchGrid grid(kRows, kCols, SkPatchGrid::kColors_VertexType, nullptr);
« no previous file with comments | « gm/occludedrrectblur.cpp ('k') | gm/pathcontourstart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698