Revert "Download home v2: Increase thumbnail cache size."
This reverts commit b859fdbb. Reason for revert: <INSERT REASONING HERE> Original change's description: > Download home v2: Increase thumbnail cache size. > > On Android we use an in-memory thumbnail cache to improve view recycling > performance and use a disk cache to avoid costly backend operations like > decoding images, videos etc. > > For download home v2, the thumbnail size is much larger than the old > download home, thus we need to tweak the size of cache. 90% percentile > of users have around 15 media thumbnails. The size of bitmap varies from > under 1MB to around 5MB. The disk cache uses PNG to compress, the > compression rate is around 1/3. > > This CL does the following: > > 1. The size of the thumbnail for high dpi devices are scaled down to > mdpi, which can save memory/disk. > > 2. For in-memory cache size, download home v2 uses 15MB for high end > devices. In-memory cache size is now passed in from owner of > ThumbnailProviderImpl. > > 3. Disk cache size is increased. This should be shared by multiple > owners of ThumbnailProviderImpl, or the owner with smaller disk cache > size may remove files unexpectedly used by other owners. > > Bug: 87292 > Change-Id: If7cb700a60a8d119bca136b1a7d1fe7feb787d8b > Reviewed-on: https://chromium-review.googlesource.com/c/1296546 > Commit-Queue: Xing Liu <xingliu@chromium.org> > Reviewed-by: David Trainor <dtrainor@chromium.org> > Reviewed-by: Shakti Sahu <shaktisahu@chromium.org> > Cr-Commit-Position: refs/heads/master@{#602957} TBR=dtrainor@chromium.org,qinmin@chromium.org,shaktisahu@chromium.org,xingliu@chromium.org Change-Id: I1c63b7c1d6aa4af322080f4d27cd84b1ccc244bc No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 87292 Reviewed-on: https://chromium-review.googlesource.com/c/1300795Reviewed-by:Xing Liu <xingliu@chromium.org> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#602962}
Showing
Please register or sign in to comment