DescriptionMac: 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 #Messages
Total messages: 17 (6 generated)
|