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

Unified Diff: chrome/app/vector_icons/vector_icons.cc.template

Issue 2620653004: Optimize GetPathForVectorIcon*, save ~290 KB on disk (Closed)
Patch Set: Add constexpr to another PathElement array definition Created 3 years, 11 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 | « ash/resources/vector_icons/vector_icons.cc.template ('k') | ui/gfx/vector_icons/vector_icons.cc.template » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/vector_icons/vector_icons.cc.template
diff --git a/chrome/app/vector_icons/vector_icons.cc.template b/chrome/app/vector_icons/vector_icons.cc.template
index 5c5155e136d7df3258c372ce366ac055401e9686..577bf8563ed4af83349482c2c03a2aa36a92a065 100644
--- a/chrome/app/vector_icons/vector_icons.cc.template
+++ b/chrome/app/vector_icons/vector_icons.cc.template
@@ -11,7 +11,7 @@
#include "ui/gfx/vector_icon_types.h"
#define PATH_ELEMENT_TEMPLATE(path_name, ...) \
-static gfx::PathElement path_name[] = {__VA_ARGS__};
+static constexpr gfx::PathElement path_name[] = {__VA_ARGS__};
#define VECTOR_ICON_TEMPLATE(icon_name, path_name, path_name_1x) \
const gfx::VectorIcon icon_name = { path_name , path_name_1x };
grt (UTC plus 2) 2017/02/07 07:46:15 why not here as well? it may not have the same won
brucedawson 2017/02/21 17:52:12 The only reason it wasn't added was because it was
« no previous file with comments | « ash/resources/vector_icons/vector_icons.cc.template ('k') | ui/gfx/vector_icons/vector_icons.cc.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698