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

Issue 859423002: Explicitly specify the ui::Compositor to DelegatedFrameHost (Closed)

Created:
5 years, 11 months ago by ccameron
Modified:
5 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Explicitly specify the ui::Compositor to DelegatedFrameHost When DelegatedFrameHost was split off from RenderWidgetHostViewAura, I had DelegatedFrameHost access the ui::Compositor via a call into the client. This is harder to reason about than it should be, and leaves open the possibility of keeping the DelegatedFrameHost as an observer of a dead ui::Compositor. Explicitly detach the DelegatedFrameHost from the ui::Compositor when the ui::Compositor is being destroyed. Add a check to the observer list, to ensure that it is empty at destruction. BUG=(paying down technical debt) Committed: https://crrev.com/92bcf3157b47fd6dffc3fafffd6227d87d4b7f99 Cr-Commit-Position: refs/heads/master@{#312926}

Patch Set 1 #

Patch Set 2 : Add check #

Patch Set 3 : CHECK -> DCHECK #

Total comments: 2

Patch Set 4 : Incorporate review feedback #

Patch Set 5 : Ease null handling for tests #

Patch Set 6 : Observe compositor destruction #

Patch Set 7 : Add aura:: #

Total comments: 2

Patch Set 8 : Use compositor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -125 lines) Patch
M ash/wm/window_animations.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/compositor/delegated_frame_host.h View 1 2 3 4 5 6 7 4 chunks +5 lines, -3 lines 0 comments Download
M content/browser/compositor/delegated_frame_host.cc View 1 2 3 4 5 6 7 12 chunks +36 lines, -45 lines 0 comments Download
M content/browser/media/capture/desktop_capture_device_aura.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 6 7 3 chunks +2 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 3 chunks +2 lines, -10 lines 0 comments Download
M ui/aura/bench/bench_main.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M ui/compositor/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -15 lines 0 comments Download
M ui/compositor/compositor.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ui/compositor/compositor_observer.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -11 lines 0 comments Download
M ui/compositor/compositor_observer.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -28 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/test/draw_waiter_for_test.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M ui/compositor/test/draw_waiter_for_test.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
ccameron
ptal -- small change. I'm planning some other changes to the DelegatedFrameHost, but I want ...
5 years, 11 months ago (2015-01-22 01:53:40 UTC) #2
jbauman
lgtm https://codereview.chromium.org/859423002/diff/40001/content/browser/compositor/delegated_frame_host.cc File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/859423002/diff/40001/content/browser/compositor/delegated_frame_host.cc#newcode82 content/browser/compositor/delegated_frame_host.cc:82: compositor_(NULL), The style guide says to use nullptr. ...
5 years, 11 months ago (2015-01-22 02:11:20 UTC) #3
ccameron
Thanks!
5 years, 11 months ago (2015-01-22 23:33:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/859423002/60001
5 years, 11 months ago (2015-01-22 23:35:28 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/18859)
5 years, 11 months ago (2015-01-23 01:34:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/859423002/80001
5 years, 11 months ago (2015-01-23 03:04:02 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/27992)
5 years, 11 months ago (2015-01-23 05:29:59 UTC) #12
ccameron
Adding sky for ui/aura stuff This indeed uncovered an issue where we were leaving dead ...
5 years, 11 months ago (2015-01-23 11:34:24 UTC) #14
sky
https://codereview.chromium.org/859423002/diff/120001/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/859423002/diff/120001/ui/aura/window_tree_host.cc#newcode184 ui/aura/window_tree_host.cc:184: FOR_EACH_OBSERVER(WindowTreeHostObserver, observers_, Can whoever cares about this notification listen ...
5 years, 11 months ago (2015-01-23 17:32:18 UTC) #15
ccameron
Thanks -- I've changed the patch to use a compositor observer instead. https://codereview.chromium.org/859423002/diff/120001/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc ...
5 years, 11 months ago (2015-01-23 18:52:27 UTC) #16
sky
On 2015/01/23 18:52:27, ccameron wrote: > Thanks -- I've changed the patch to use a ...
5 years, 11 months ago (2015-01-23 20:27:02 UTC) #20
ccameron
On 2015/01/23 20:27:02, sky wrote: > On 2015/01/23 18:52:27, ccameron wrote: > > Thanks -- ...
5 years, 11 months ago (2015-01-23 20:32:39 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/859423002/200001
5 years, 11 months ago (2015-01-23 20:33:13 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/38009) Try jobs failed on following ...
5 years, 11 months ago (2015-01-23 20:44:28 UTC) #25
Alpha Left Google
LGTM.
5 years, 11 months ago (2015-01-23 20:55:39 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/859423002/200001
5 years, 11 months ago (2015-01-23 20:57:05 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/38009)
5 years, 11 months ago (2015-01-23 20:57:55 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/859423002/200001
5 years, 11 months ago (2015-01-23 21:03:02 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:200001)
5 years, 11 months ago (2015-01-23 21:04:54 UTC) #34
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 21:06:12 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/92bcf3157b47fd6dffc3fafffd6227d87d4b7f99
Cr-Commit-Position: refs/heads/master@{#312926}

Powered by Google App Engine
This is Rietveld 408576698