diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-10-26 13:57:00 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-11-02 11:31:01 +0000 |
commit | 1943b3c2a1dcee36c233724fc4ee7613d71b9cf6 (patch) | |
tree | 8c1b5f12357025c197da5427ae02cfdc2f3570d6 /chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_underlying_source.h | |
parent | 21ba0c5d4bf8fba15dddd97cd693bad2358b77fd (diff) | |
download | qtwebengine-chromium-1943b3c2a1dcee36c233724fc4ee7613d71b9cf6.tar.gz |
BASELINE: Update Chromium to 94.0.4606.111
Change-Id: I924781584def20fc800bedf6ff41fdb96c438193
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_underlying_source.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_underlying_source.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_underlying_source.h b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_underlying_source.h index 586002e9efb..33dc3a7329a 100644 --- a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_underlying_source.h +++ b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_underlying_source.h @@ -20,7 +20,7 @@ class MODULES_EXPORT RTCEncodedAudioUnderlyingSource public: explicit RTCEncodedAudioUnderlyingSource( ScriptState*, - base::OnceClosure disconnect_callback, + WTF::CrossThreadOnceClosure disconnect_callback, bool is_receiver); // UnderlyingSourceBase @@ -30,19 +30,27 @@ class MODULES_EXPORT RTCEncodedAudioUnderlyingSource void OnFrameFromSource(std::unique_ptr<webrtc::TransformableFrameInterface>); void Close(); + // Called on any thread to indicate the source is being transferred to an + // UnderlyingSource on a different thread to this. + void OnSourceTransferStarted(); + void Trace(Visitor*) const override; private: + // Implements the handling of this stream being transferred to another + // context, called on the thread upon which the instance was created. + void OnSourceTransferStartedOnTaskRunner(); + FRIEND_TEST_ALL_PREFIXES(RTCEncodedAudioUnderlyingSourceTest, QueuedFramesAreDroppedWhenOverflow); static const int kMinQueueDesiredSize; const Member<ScriptState> script_state_; - base::OnceClosure disconnect_callback_; + WTF::CrossThreadOnceClosure disconnect_callback_; // Indicates if this source is for a receiver. Receiver sources // expose CSRCs. const bool is_receiver_; - THREAD_CHECKER(thread_checker_); + scoped_refptr<base::SingleThreadTaskRunner> task_runner_; }; } // namespace blink |