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

Issue 2093113003: Clean up the RWHVMac to ui::Compositor interface (phase 1 of 2) (Closed)

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

Description

Clean up the RWHVMac to ui::Compositor interface Move the "ui::Compositor's relationship to RWHVMac" state machine into BrowserCompositorViewMac. Clarify the state by renaming states from Active / Suspended / Destroyed to HasAttachedCompositor / HasDetachedCompositor / HasNoCompositor Change the thumbnailer's copy requests to be intercepted by the BrowserCompositorViewMac, and thereby have the copy request keep the ui::Compositor attached (even if the RenderWidgetHostImpl is hidden). BUG=623716 Committed: https://crrev.com/9e8481c2e211439771d0634043d2addf9fe7b4ec Cr-Commit-Position: refs/heads/master@{#402541}

Patch Set 1 #

Patch Set 2 : git cl try #

Patch Set 3 : git cl try #

Patch Set 4 : Clean up destroy, rebase #

Total comments: 3

Patch Set 5 : Remove hack #

Unified diffs Side-by-side diffs Delta from patch set Stats (+489 lines, -360 lines) Patch
M chrome/browser/thumbnails/thumbnail_tab_helper.cc View 3 chunks +1 line, -15 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.h View 1 2 3 4 1 chunk +124 lines, -51 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 2 3 4 5 chunks +303 lines, -40 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 chunks +1 line, -57 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 24 chunks +60 lines, -197 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
ccameron
LMK if you'd prefer me to clean up the DelegatedFrameHost interface in this patch as ...
4 years, 5 months ago (2016-06-27 22:35:59 UTC) #3
ccameron
On 2016/06/27 22:35:59, ccameron wrote: > LMK if you'd prefer me to clean up the ...
4 years, 5 months ago (2016-06-27 23:50:49 UTC) #5
enne (OOO)
This is so much cleaner compared to the previous mess of unoccluding for thumbnails inside ...
4 years, 5 months ago (2016-06-28 00:25:38 UTC) #6
ccameron
Thanks! https://codereview.chromium.org/2093113003/diff/60001/content/browser/renderer_host/browser_compositor_view_mac.mm File content/browser/renderer_host/browser_compositor_view_mac.mm (right): https://codereview.chromium.org/2093113003/diff/60001/content/browser/renderer_host/browser_compositor_view_mac.mm#newcode271 content/browser/renderer_host/browser_compositor_view_mac.mm:271: SetRenderWidgetHostIsHidden(render_widget_host_is_hidden); On 2016/06/28 00:25:37, enne wrote: > This ...
4 years, 5 months ago (2016-06-28 07:04:11 UTC) #7
enne (OOO)
Ok, I think I still don't understand why the hidden state would not be correct ...
4 years, 5 months ago (2016-06-28 17:11:41 UTC) #8
ccameron
Thanks! On 2016/06/28 17:11:41, enne wrote: > Ok, I think I still don't understand why ...
4 years, 5 months ago (2016-06-28 17:27:36 UTC) #9
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/2093113003/80001
4 years, 5 months ago (2016-06-28 17:28:46 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/208586)
4 years, 5 months ago (2016-06-28 17:41:08 UTC) #13
ccameron
Adding thakis@ for chrome/.../thumbnails OWNER https://codereview.chromium.org/2093113003/diff/60001/content/browser/renderer_host/browser_compositor_view_mac.mm File content/browser/renderer_host/browser_compositor_view_mac.mm (right): https://codereview.chromium.org/2093113003/diff/60001/content/browser/renderer_host/browser_compositor_view_mac.mm#newcode271 content/browser/renderer_host/browser_compositor_view_mac.mm:271: SetRenderWidgetHostIsHidden(render_widget_host_is_hidden); Moved this "set" ...
4 years, 5 months ago (2016-06-28 17:49:39 UTC) #15
Nico
rs-lgtm
4 years, 5 months ago (2016-06-28 18:14:54 UTC) #16
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/2093113003/80001
4 years, 5 months ago (2016-06-28 19:21:05 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-28 21:05:46 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 21:08:57 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9e8481c2e211439771d0634043d2addf9fe7b4ec
Cr-Commit-Position: refs/heads/master@{#402541}

Powered by Google App Engine
This is Rietveld 408576698