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

Issue 326023002: App list: TileItemView::SetAppListItem exits early if item already set. (Closed)

Created:
6 years, 6 months ago by Matt Giuca
Modified:
6 years, 6 months ago
Reviewers:
tapted, calamity, benwells
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

Description

App list: TileItemView::SetAppListItem exits early if item already set. This effectively caches the result of CalculateKMeanColorOfBitmap so it does not have to be recomputed every time the start page view is reset. Noticeable improvement in the time it takes to switch to the start page. BUG=382795 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277407

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added TODO for calamity. Removed newline fixes. #

Patch Set 3 : Fix test failure (TileItemView is invisible by default). #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M ui/app_list/views/tile_item_view.cc View 1 2 2 chunks +10 lines, -0 lines 1 comment Download

Messages

Total messages: 15 (0 generated)
Matt Giuca
https://codereview.chromium.org/326023002/diff/1/ui/app_list/views/tile_item_view.h File ui/app_list/views/tile_item_view.h (right): https://codereview.chromium.org/326023002/diff/1/ui/app_list/views/tile_item_view.h#newcode51 ui/app_list/views/tile_item_view.h:51: #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ Just adding newlines to the end ...
6 years, 6 months ago (2014-06-10 03:36:53 UTC) #1
calamity
lgtm
6 years, 6 months ago (2014-06-10 03:45:30 UTC) #2
tapted
drive-by (also, the newlines should be gone as of http://crrev.com/275129 -- they're a build error ...
6 years, 6 months ago (2014-06-10 04:21:54 UTC) #3
Matt Giuca
Thanks for catching the newline conflict. https://codereview.chromium.org/326023002/diff/1/ui/app_list/views/tile_item_view.cc File ui/app_list/views/tile_item_view.cc (right): https://codereview.chromium.org/326023002/diff/1/ui/app_list/views/tile_item_view.cc#newcode105 ui/app_list/views/tile_item_view.cc:105: if (item == ...
6 years, 6 months ago (2014-06-10 05:28:54 UTC) #4
tapted
drive-by-lgtm
6 years, 6 months ago (2014-06-10 05:53:06 UTC) #5
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 6 months ago (2014-06-10 06:02:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/326023002/20001
6 years, 6 months ago (2014-06-10 06:05:20 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 20:17:19 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 21:29:28 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/40302)
6 years, 6 months ago (2014-06-10 21:29:29 UTC) #10
Matt Giuca
calamity: PTAL re the SetVisible behaviour. https://codereview.chromium.org/326023002/diff/40001/ui/app_list/views/tile_item_view.cc File ui/app_list/views/tile_item_view.cc (right): https://codereview.chromium.org/326023002/diff/40001/ui/app_list/views/tile_item_view.cc#newcode99 ui/app_list/views/tile_item_view.cc:99: SetVisible(false); I don't ...
6 years, 6 months ago (2014-06-16 00:29:28 UTC) #11
calamity
slgtm.
6 years, 6 months ago (2014-06-16 00:49:45 UTC) #12
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 6 months ago (2014-06-16 07:38:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/326023002/40001
6 years, 6 months ago (2014-06-16 07:39:17 UTC) #14
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 11:38:34 UTC) #15
Message was sent while issue was closed.
Change committed as 277407

Powered by Google App Engine
This is Rietveld 408576698