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

Unified Diff: gm/textblobshader.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/textblobrandomfont.cpp ('k') | gm/textblobtransforms.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/textblobshader.cpp
diff --git a/gm/textblobshader.cpp b/gm/textblobshader.cpp
index 6a8fa49289996268f4b1af669bdf99ec0ee3736d..bb0e03c4f3c848fb5ac8051fa0391428c8c4cf5e 100644
--- a/gm/textblobshader.cpp
+++ b/gm/textblobshader.cpp
@@ -89,8 +89,8 @@ protected:
p.setShader(fShader);
SkISize sz = this->onISize();
- static const int kXCount = 4;
- static const int kYCount = 3;
+ constexpr int kXCount = 4;
+ constexpr int kYCount = 3;
for (int i = 0; i < kXCount; ++i) {
for (int j = 0; j < kYCount; ++j) {
canvas->drawTextBlob(fBlob,
« no previous file with comments | « gm/textblobrandomfont.cpp ('k') | gm/textblobtransforms.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698