Unregister the ViewResourceAdapter for Grid Tab Switcher after animation
A ViewResourceAdapter is used to show the Grid Tab Switcher (GTS) in the background when playing the Tab-to-Grid transition animation. After the animation is done, the Java-side bitmap is released in https://crrev.com/c/1636833 and https://crrev.com/c/1639150, but the native-side bitmap is kept, wasting ~3MB of native memory on high-end phones (assuming downsampling scale = 0.5). The effects on performance (frame rate, max frame interval, etc) are within error margin. Bug: 971281 Change-Id: I9b29a91cb593c46505f1d2be29f7d3dd5e12feb6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1645458 Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by:David Trainor <dtrainor@chromium.org> Reviewed-by:
Matthew Jones <mdjones@chromium.org> Reviewed-by:
Yusuf Ozuysal <yusufo@chromium.org> Cr-Commit-Position: refs/heads/master@{#669996}
Showing
Please register or sign in to comment