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

Unified Diff: ui/gfx/vector_icon_types.h

Issue 2620653004: Optimize GetPathForVectorIcon*, save ~290 KB on disk (Closed)
Patch Set: 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
Index: ui/gfx/vector_icon_types.h
diff --git a/ui/gfx/vector_icon_types.h b/ui/gfx/vector_icon_types.h
index 8def67d2fcc7899a2cb28daa6242e2d8533f4728..8e09523061c3fcc95fb8feb1cdd322c44e01e493 100644
--- a/ui/gfx/vector_icon_types.h
+++ b/ui/gfx/vector_icon_types.h
@@ -64,8 +64,8 @@ enum CommandType {
// A POD that describes either a path command or an argument for it.
struct PathElement {
- PathElement(CommandType value) : type(value) {}
- PathElement(SkScalar value) : arg(value) {}
+ constexpr PathElement(CommandType value) : type(value) {}
Evan Stade 2017/01/10 17:30:26 I believe your tree is slightly out of date :)
brucedawson 2017/01/10 18:31:54 What bizarre timing that I made this change the sa
+ constexpr PathElement(SkScalar value) : arg(value) {}
union {
CommandType type;

Powered by Google App Engine
This is Rietveld 408576698