Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1309)

Unified Diff: remoting/protocol/fake_session.cc

Issue 2035803002: Fix WebRtcFrameScheduler to wait for first key frame request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/webrtc_frame_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_session.cc
diff --git a/remoting/protocol/fake_session.cc b/remoting/protocol/fake_session.cc
index e0bdd896d4eac6d0eebc12d1e967123743f0eea5..f4d5cd158f17a0e24c7ef26cff050ff50a9c367d 100644
--- a/remoting/protocol/fake_session.cc
+++ b/remoting/protocol/fake_session.cc
@@ -86,7 +86,20 @@ void FakeSession::SendTransportInfo(
std::unique_ptr<buzz::XmlElement> transport_info) {
if (!peer_)
return;
- peer_->transport_->ProcessTransportInfo(transport_info.get());
+
+ if (signaling_delay_.is_zero()) {
+ peer_->ProcessTransportInfo(std::move(transport_info));
+ } else {
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
+ FROM_HERE, base::Bind(&FakeSession::ProcessTransportInfo, peer_,
+ base::Passed(&transport_info)),
+ signaling_delay_);
+ }
+}
+
+void FakeSession::ProcessTransportInfo(
+ std::unique_ptr<buzz::XmlElement> transport_info) {
+ transport_->ProcessTransportInfo(transport_info.get());
}
} // namespace protocol
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/webrtc_frame_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698