Chromium Code Reviews
Descriptionaw: Ensure functor is called after binding init
Currently a crash from null bindings in functor can result
from this sequence:
* Compositor initialized
* BVR::OnDrawHardware sets hardware_enabled_, but renderer
side has not been intialized so returns a null frame
* Detach or destroy webview, which will try to run functor
for clean up since hardware_enabled_ is true.
The last step will race with GL binding init on gpu thread.
If functor runs first, then will result in crashes.
The small fix for now is make sure to not set
hardware_enabled_ until after receiving a hardware frame
from renderer side.
This crash is new in IPC-based sync compositing. The old
in-process path waits for renderer side to be up before
initializing browser side.
BUG=595811
Committed: https://crrev.com/a0f215e54b6ab4cf50e67ae7a2450e0327af6f7e
Cr-Commit-Position: refs/heads/master@{#383602}
Patch Set 1 #Patch Set 2 : memory policy #Messages
Total messages: 16 (9 generated)
|