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

Issue 2167003002: Mac: Clean up ui::Compositor recycling (Closed)

Created:
4 years, 5 months ago by ccameron
Modified:
4 years, 5 months ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Clean up ui::Compositor recycling Tab switch was often janky because we would end up creating and destroying a ui::Compositor during tab-switch. Fix this by posting a task to free the "spare" ui::Compositors. This fix has two effects. First, this doesn't destroy the compositor while the browser compositor is potentially waiting for a from the switched-to-tab to come in (reducing contention). Second, by posting a task to free up compositors, it allows us to be in transient states where we have more than one "spare" ui::Compositor, which indeed happens when opening a new tab. BUG=630028 Committed: https://crrev.com/1f260a62accfc82c4bc7d7578bb3edb9116a1056 Cr-Commit-Position: refs/heads/master@{#406787}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -12 lines) Patch
M content/browser/renderer_host/browser_compositor_view_mac.mm View 6 chunks +27 lines, -12 lines 2 comments Download

Messages

Total messages: 12 (5 generated)
ccameron
Cleanup from fallout from cleanup.
4 years, 5 months ago (2016-07-20 23:44:15 UTC) #3
enne (OOO)
https://codereview.chromium.org/2167003002/diff/1/content/browser/renderer_host/browser_compositor_view_mac.mm File content/browser/renderer_host/browser_compositor_view_mac.mm (right): https://codereview.chromium.org/2167003002/diff/1/content/browser/renderer_host/browser_compositor_view_mac.mm#newcode136 content/browser/renderer_host/browser_compositor_view_mac.mm:136: g_spare_recyclable_compositors.Get().pop_front(); Did you want to delete the remaining spare ...
4 years, 5 months ago (2016-07-20 23:53:48 UTC) #4
ccameron
https://codereview.chromium.org/2167003002/diff/1/content/browser/renderer_host/browser_compositor_view_mac.mm File content/browser/renderer_host/browser_compositor_view_mac.mm (right): https://codereview.chromium.org/2167003002/diff/1/content/browser/renderer_host/browser_compositor_view_mac.mm#newcode136 content/browser/renderer_host/browser_compositor_view_mac.mm:136: g_spare_recyclable_compositors.Get().pop_front(); On 2016/07/20 23:53:48, enne wrote: > Did you ...
4 years, 5 months ago (2016-07-20 23:59:34 UTC) #5
enne (OOO)
lgtm
4 years, 5 months ago (2016-07-21 00:04:50 UTC) #6
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/2167003002/1
4 years, 5 months ago (2016-07-21 05:49:19 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-21 06:29:45 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 06:32:03 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/1f260a62accfc82c4bc7d7578bb3edb9116a1056
Cr-Commit-Position: refs/heads/master@{#406787}

Powered by Google App Engine
This is Rietveld 408576698