Remove unnecessary font list creation in AppListItemView.
commitb5b43219131ca9fed3aa6841085ef67de82e229f
authorcalamity <calamity@chromium.org>
Fri, 19 Sep 2014 05:27:38 +0000 (18 22:27 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 19 Sep 2014 05:28:13 +0000 (19 05:28 +0000)
tree548e7879b54d53a5bb58927d307ae9f713b4b812
parente09c59d7bf42d1eabfecfd5ccbae1ee3fc63cf5b
Remove unnecessary font list creation in AppListItemView.

This CL improves the app list startup time on non-Linux platforms. A new
FontList object was being unnecessarily created on every AppListItemView
which forced recalculations of otherwise cached values.

This was most noticeable on ChromeOS where the app list is
rebuilt every time it is shown.

BUG=415389

Review URL: https://codereview.chromium.org/574983002

Cr-Commit-Position: refs/heads/master@{#295663}
ui/app_list/views/app_list_item_view.cc