DescriptionUpdates to VCMDecodedFrameCallback, VideoReceiver and a few related classes/tests.
* The _receiveCallback member of VCMDecodedFrameCallback does actually not require locking now that the threading model is slightly clearer. Documentation and checks have been added.
* UserReceiveCallback() never returns null and must always be called on the decoder thread. Checks have been added and the two test suites that were failing to set this callback, have been fixed and a new mock class added. (looks like sakal@ may have hit some issues with flaky tests there).
* Changed VcmPayloadSink to use move semantics which I suspect was the intention at the time the code was written (when we didn't have move semantics).
* Added thread checker to a couple of classes and started adding thread checks for known behavior. There's more to be done there.
* Remove the |_decoder| member variable in VideoReceiver. It is not needed and as it could be used, left us open to a race.
* TODOs added for places where we can reduce locking. I suspect that we can get away with not needing a lock around _codecDataBase in VideoReceiver once we've got a clear picture of the threading model and ensured that all adhere to it.
BUG=webrtc:7328
Review-Url: https://codereview.webrtc.org/2744013002
Cr-Commit-Position: refs/heads/master@{#17226}
Committed: https://chromium.googlesource.com/external/webrtc/+/d0a71ba1ae69f73025e7381fa7e5593b3a0f7833
Patch Set 1 #Patch Set 2 : More comments checks, remove _decoder #Patch Set 3 : Update checks and docs #Patch Set 4 : Add mock for receive callback and set it for a few tests that didn't #Patch Set 5 : Format + assert->DCHECK and require callback in decode #
Total comments: 8
Patch Set 6 : Rebase #Patch Set 7 : Address comments and replace a few assert calls with RTC_DCHECK #
Total comments: 2
Patch Set 8 : Update DCHECKs #Messages
Total messages: 48 (33 generated)
|