Allow track adapters and adapter refs to be initialized explicitly.
Normally they are created on the signaling thread and initialized in a PostTask to the main thread, so they are implicitly initialized if you don't do anything. This is still true. This CL introduced InitializeOnMainThread() which can be called explicitly, meaning you don't have to wait for the posted task to run. This is only relevant if the main thread is doing a blocking call to the webrtc signaling thread and obtains the adapter earlier than is possible with a PostTask. This needs to be doable when we have transceivers and remote tracks are created when you synchronously add tracks (addTrack, addStream, addTransceiver). Bug: 777617 Change-Id: I22400466acb925221dff1a6f4db4eeb333936b66 Reviewed-on: https://chromium-review.googlesource.com/1113756 Commit-Queue: Henrik Boström <hbos@chromium.org> Reviewed-by:Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#572537}
Showing
Please register or sign in to comment