Release thumbnail when TabGridView is recycled
This depends on https://crrev.com/c/1595292 to actually release the memory of the Bitmap. On Pixel 2 XL, before this CL, there can be up to 8 (visible or to-be-visible cards) + 5 (recycled in the view pool) thumbnail Bitmaps in the memory after GC when GTS is visible. After hiding GTS, there are still 5 Bitmaps in the recycled views after GC. This CL addresses the recycled views in the pool. Bug: 959054 Change-Id: I601417e5d2e67eafd69aee36fe00614beb046aff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1595128 Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Cr-Commit-Position: refs/heads/master@{#661105}
Showing
Please register or sign in to comment