Chromium Code Reviews
Description[Remoting Android] Fix race condition when initializing JniDisplayHandler
Previously weak_ptr_ is initialized after the PostTask call so sometimes
initialize() may be called earlier than weak_ptr_ being set, ending up with
a renderer_.SetDelegate(nullptr) call. In this case the renderer can't
report the dimension of the desktop frame to DesktopCanvas and DesktopCanvas
will just send broken transformation matrices, causing the renderer to render
only a black screen on the view.
This CL swaps two lines in JniDisplayHandler's ctor to fix this bug. I'll make
a follow up CL to guard the delegate in the renderer.
BUG=703240
Review-Url: https://codereview.chromium.org/2763773002
Cr-Commit-Position: refs/heads/master@{#458210}
Committed: https://chromium.googlesource.com/chromium/src/+/c99c48fc29b8e104b7552cdac7e28f8534c83bb7
Patch Set 1 #
Messages
Total messages: 10 (4 generated)
|
|||||||||||||||||||