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

Issue 574983002: Remove unnecessary font list creation in AppListItemView. (Closed)

Created:
6 years, 3 months ago by calamity
Modified:
6 years, 3 months ago
Reviewers:
tapted
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/b5b43219131ca9fed3aa6841085ef67de82e229f Cr-Commit-Position: refs/heads/master@{#295663}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -12 lines) Patch
M ui/app_list/views/app_list_item_view.cc View 1 3 chunks +17 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
calamity
6 years, 3 months ago (2014-09-18 01:50:40 UTC) #2
tapted
https://codereview.chromium.org/574983002/diff/1/ui/app_list/views/app_list_item_view.cc File ui/app_list/views/app_list_item_view.cc (right): https://codereview.chromium.org/574983002/diff/1/ui/app_list/views/app_list_item_view.cc#newcode96 ui/app_list/views/app_list_item_view.cc:96: font_list = font_list.DeriveWithSizeDelta(kFontSizeDelta); assigning to a const reference? pretty ...
6 years, 3 months ago (2014-09-18 01:56:45 UTC) #3
calamity
Used a static dealy as discussed.
6 years, 3 months ago (2014-09-18 07:48:04 UTC) #5
tapted
lgtm
6 years, 3 months ago (2014-09-18 09:48:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/574983002/40001
6 years, 3 months ago (2014-09-19 04:24:03 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001) as a1015513db855e36282b82cfc48c2eaa825c0dc2
6 years, 3 months ago (2014-09-19 05:27:46 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 05:28:42 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b5b43219131ca9fed3aa6841085ef67de82e229f
Cr-Commit-Position: refs/heads/master@{#295663}

Powered by Google App Engine
This is Rietveld 408576698