DescriptionRelease TabBarTransitionContext when no longer required.
A TabBarTransitionContext object is always kept around after visiting
the tab bar switcher, releasing it will save memory during normal browsing.
This change releases the transition context object when the dismiss
animation is completed by the tab bar switcher. A new one is created
every time we enter the switcher so it's not necessary don't need to
keep the old one around after its been used.
Instruments shows a saving of around 110KB of memory with this
change.
BUG=none
Review-Url: https://codereview.chromium.org/2780253003
Cr-Commit-Position: refs/heads/master@{#460823}
Committed: https://chromium.googlesource.com/chromium/src/+/4cd903e0450bf609707bc83c5d1f4b415bd51fbc
Patch Set 1 #
Messages
Total messages: 11 (6 generated)
|