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

Issue 1354533002: Mac: move content::RenderWidgetResizeHelper to ui::WindowResizeHelperMac (acelerated_widget_mac) (Closed)

Created:
5 years, 3 months ago by tapted
Modified:
5 years, 3 months ago
Reviewers:
jam, ccameron
CC:
chromium-reviews, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: move content::RenderWidgetResizeHelper to ui::WindowResizeHelperMac (acelerated_widget_mac) We need composited UI on Mac to cooperate with the GPU process in a similar way to how a Mac RenderWidget does this for composited content. By separating out the content dependencies from RenderWidgetResizeHelper, it then becomes a reasonably straightforward move to src/ui/accelerated_widget_mac. This allows resize operations performed on views::BridgedNativeWidget to hook into the same resize task coordination paths as the RenderWidgetHostView. One tricky bit: a call to BrowserThread::GetMessageLoopProxyForThread( BrowserThread::UI)). ui/accelerated_widget_mac can't depend on content, so it needs to be informed about the UI thread's task runner before any renderers are created. Doing the initialization in BrowserMainLoop::PreCreateThreads() ensures the initialization happens before the IO thread is created. BUG=531831 Committed: https://crrev.com/ef4c91b0545cd2190ef0650d03662e823d1cf6b0 Cr-Commit-Position: refs/heads/master@{#350449}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update comment #

Patch Set 3 : rejig class comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -498 lines) Patch
M base/threading/thread_restrictions.h View 4 chunks +5 lines, -2 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/compositor/browser_compositor_view_mac.mm View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 chunk +8 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_resize_helper_mac.h View 1 2 1 chunk +18 lines, -60 lines 0 comments Download
M content/browser/renderer_host/render_widget_resize_helper_mac.cc View 2 chunks +6 lines, -305 lines 0 comments Download
M ui/accelerated_widget_mac/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/accelerated_widget_mac/accelerated_widget_mac.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A + ui/accelerated_widget_mac/window_resize_helper_mac.h View 1 2 3 chunks +46 lines, -54 lines 0 comments Download
A + ui/accelerated_widget_mac/window_resize_helper_mac.cc View 6 chunks +37 lines, -64 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
tapted
Hi Chris please take a look. Follow-up to this (for MacViews) is http://crrev.com/1352743002 Once this ...
5 years, 3 months ago (2015-09-17 08:53:19 UTC) #2
ccameron
This lgtm
5 years, 3 months ago (2015-09-17 18:58:48 UTC) #3
tapted
+jam please take a look for OWNERS in thread_restrictions (just a rename) and content/browser/browser_main_loop.cc (I ...
5 years, 3 months ago (2015-09-17 22:59:30 UTC) #5
jam
https://codereview.chromium.org/1354533002/diff/1/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1354533002/diff/1/content/browser/browser_main_loop.cc#newcode706 content/browser/browser_main_loop.cc:706: // The WindowResizeHelper synchronizes IO thread tasks with the ...
5 years, 3 months ago (2015-09-17 23:25:16 UTC) #6
tapted
https://codereview.chromium.org/1354533002/diff/1/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1354533002/diff/1/content/browser/browser_main_loop.cc#newcode706 content/browser/browser_main_loop.cc:706: // The WindowResizeHelper synchronizes IO thread tasks with the ...
5 years, 3 months ago (2015-09-18 00:36:55 UTC) #7
jam
On 2015/09/18 00:36:55, tapted wrote: > https://codereview.chromium.org/1354533002/diff/1/content/browser/browser_main_loop.cc > File content/browser/browser_main_loop.cc (right): > > https://codereview.chromium.org/1354533002/diff/1/content/browser/browser_main_loop.cc#newcode706 > ...
5 years, 3 months ago (2015-09-21 16:49:15 UTC) #8
tapted
On 2015/09/21 16:49:15, jam wrote: > On 2015/09/18 00:36:55, tapted wrote: > > > https://codereview.chromium.org/1354533002/diff/1/content/browser/browser_main_loop.cc ...
5 years, 3 months ago (2015-09-22 06:24:18 UTC) #11
jam
lgtm
5 years, 3 months ago (2015-09-23 18:14:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354533002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354533002/80001
5 years, 3 months ago (2015-09-24 00:38:34 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 3 months ago (2015-09-24 02:51:46 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 02:52:31 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ef4c91b0545cd2190ef0650d03662e823d1cf6b0
Cr-Commit-Position: refs/heads/master@{#350449}

Powered by Google App Engine
This is Rietveld 408576698