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

Unified Diff: gm/bitmapcopy.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/bigtileimagefilter.cpp ('k') | gm/bitmappremul.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmapcopy.cpp
diff --git a/gm/bitmapcopy.cpp b/gm/bitmapcopy.cpp
index b52337b4bfb4d92288670d2d9ad1d026f1af8623..59505877ef321571639b29b7693d675b21f82c7b 100644
--- a/gm/bitmapcopy.cpp
+++ b/gm/bitmapcopy.cpp
@@ -18,7 +18,7 @@ static const char* gColorTypeNames[] = {
"Index8",
};
-static const SkColorType gColorTypes[] = {
+constexpr SkColorType gColorTypes[] = {
kRGB_565_SkColorType,
kARGB_4444_SkColorType,
kN32_SkColorType,
« no previous file with comments | « gm/bigtileimagefilter.cpp ('k') | gm/bitmappremul.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698