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

Issue 1028513003: Decrease the lag when switching between different categories in the Cros wallpaper selector. (Closed)

Created:
5 years, 9 months ago by xdai1
Modified:
5 years, 9 months ago
Reviewers:
bshe
CC:
chromium-reviews, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Decrease the lag when switching between different categories in the Cros wallpaper selector. In the CL, we maintain a thumbnail list so that we don't need to fetch the thumbnail images from file system each time we switch between different categories. It might take some time at the first time, but will be instantly ready after that. And we also just preload grid items' thumbnail images in the current viewport, so that we don't experience noticeable lag when switching to a category at the first time. BUG=454932 TEST=tested on devices (pixel & peppy) Committed: https://crrev.com/bb033ee318fc12de0b9e136c99acd25950b08e8f Cr-Commit-Position: refs/heads/master@{#322015}

Patch Set 1 : #

Patch Set 2 : Only show items in the current viewport. #

Patch Set 3 : Only show items in the current viewport. #

Total comments: 6

Patch Set 4 : Address Biao's comments. #

Patch Set 5 : Fix the failed tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -26 lines) Patch
M chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_images_grid.js View 1 2 3 10 chunks +57 lines, -16 lines 0 comments Download
M chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js View 1 2 3 4 6 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
xdai1
Biao, could you help to review the CL please? Thanks!
5 years, 9 months ago (2015-03-20 18:42:24 UTC) #3
bshe
On 2015/03/20 18:42:24, xdai1 wrote: > Biao, could you help to review the CL please? ...
5 years, 9 months ago (2015-03-21 00:31:46 UTC) #4
xdai1
On 2015/03/21 00:31:46, bshe wrote: > On 2015/03/20 18:42:24, xdai1 wrote: > > Biao, could ...
5 years, 9 months ago (2015-03-23 04:42:49 UTC) #5
xdai1
On 2015/03/21 00:31:46, bshe wrote: > On 2015/03/20 18:42:24, xdai1 wrote: > > Biao, could ...
5 years, 9 months ago (2015-03-23 17:35:47 UTC) #7
bshe
https://codereview.chromium.org/1028513003/diff/80001/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_images_grid.js File chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_images_grid.js (right): https://codereview.chromium.org/1028513003/diff/80001/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_images_grid.js#newcode23 chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_images_grid.js:23: * @param {Object} thumbnail The thumbnail image Object associated ...
5 years, 9 months ago (2015-03-23 21:40:32 UTC) #8
xdai1
Biao, thanks for the review! Please take another look, thanks. https://codereview.chromium.org/1028513003/diff/80001/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_images_grid.js File chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_images_grid.js (right): https://codereview.chromium.org/1028513003/diff/80001/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_images_grid.js#newcode23 ...
5 years, 9 months ago (2015-03-23 22:06:12 UTC) #9
bshe
On 2015/03/23 22:06:12, xdai1 wrote: > Biao, thanks for the review! Please take another look, ...
5 years, 9 months ago (2015-03-23 22:17:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1028513003/140001
5 years, 9 months ago (2015-03-24 16:31:42 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:140001)
5 years, 9 months ago (2015-03-24 17:05:28 UTC) #15
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/bb033ee318fc12de0b9e136c99acd25950b08e8f Cr-Commit-Position: refs/heads/master@{#322015}
5 years, 9 months ago (2015-03-24 17:06:11 UTC) #16
James Cook
5 years, 9 months ago (2015-03-24 20:21:27 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:140001) has been created in
https://codereview.chromium.org/1030973002/ by jamescook@chromium.org.

The reason for reverting is: I suspect this is causing failures in the
cros_trunk official builder:
http://master.chrome.corp.google.com:8011/builders/cros%20trunk/builds/31816

See https://code.google.com/p/chromium/issues/detail?id=470237
.

Powered by Google App Engine
This is Rietveld 408576698