Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Issue 2780253003: Release TabBarTransitionContext when no longer required (Closed)

Created:
3 years, 8 months ago by PL
Modified:
3 years, 8 months ago
Reviewers:
jif, edchin
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Release 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm View 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
PL
3 years, 8 months ago (2017-03-29 23:09:49 UTC) #3
edchin
lgtm.
3 years, 8 months ago (2017-03-30 06:20:23 UTC) #4
jif
On 2017/03/30 06:20:23, edchin wrote: > lgtm. lgtm please update commit message to make it ...
3 years, 8 months ago (2017-03-30 09:38:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2780253003/1
3 years, 8 months ago (2017-03-30 17:57:11 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 18:11:12 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4cd903e0450bf609707bc83c5d1f...

Powered by Google App Engine
This is Rietveld 408576698