DescriptionDecrease 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. #
Messages
Total messages: 17 (6 generated)
|