Chromium Code Reviews
DescriptionRemove 2-stage RenderWidget initialization
We don't need to wait for HWND (etc.) creation before creating the
context any more. Therefore, we don't need to delay StartCompositor.
After that, CompleteInit doesn't do anything beyond sending
ViewHostMsg_RenderViewReady. The ViewHostMsg_RenderViewReady handler
only does a few things that can be done immediately after sending the
message that would have caused CompleteInit (ViewMsg_New /
ViewMsg_CreatingNew_ACK) - IPC ordering ensuring renderer-side order of
operations. Once CompleteInit is empty, ViewMsg_CreatingNew_ACK is not
useful any more either. The only thing that needs to be handled carefully
is calling RenderViewHostDelegate::RenderViewReady, because downstream
code expects it to be only called once a couple of conditions are true
(which were enforced by the renderer round-trip).
This saves an IPC round-trip in all RenderWidget creations.
BUG=535339
Committed: https://crrev.com/c4af307b97653099dda5e5fab24880065dbe0239
Cr-Commit-Position: refs/heads/master@{#351951}
Patch Set 1 : more test fixes #Patch Set 2 : rebase #
Total comments: 23
Patch Set 3 : Add DCHECK and docs #Patch Set 4 : rebase #Patch Set 5 : Fix GetPeerPID race #Patch Set 6 : fix racy test #
Total comments: 2
Patch Set 7 : review comments #Messages
Total messages: 33 (13 generated)
|