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

Unified Diff: gm/alphagradients.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/aaxfermodes.cpp ('k') | gm/anisotropic.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/alphagradients.cpp
diff --git a/gm/alphagradients.cpp b/gm/alphagradients.cpp
index 65fa0c4082daf3df93b7e726731846558ea0bf03..fa9d3e2d67135e1085d3efef93576d19e143cae3 100644
--- a/gm/alphagradients.cpp
+++ b/gm/alphagradients.cpp
@@ -38,7 +38,7 @@ protected:
}
void onDraw(SkCanvas* canvas) override {
- static const struct {
+ constexpr struct {
SkColor fColor0;
SkColor fColor1;
} gRec[] = {
« no previous file with comments | « gm/aaxfermodes.cpp ('k') | gm/anisotropic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698