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

Unified Diff: media/cast/test/cast_benchmarks.cc

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dcheng's comments. Created 4 years, 9 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 | « media/cast/sender/video_sender_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/cast_benchmarks.cc
diff --git a/media/cast/test/cast_benchmarks.cc b/media/cast/test/cast_benchmarks.cc
index 93bb6b23c2237b4a91a470f24478b8ad76be225d..a8b920b62df01c1c255f468f682b5b20f201f293 100644
--- a/media/cast/test/cast_benchmarks.cc
+++ b/media/cast/test/cast_benchmarks.cc
@@ -96,16 +96,18 @@ class CastTransportSenderWrapper : public CastTransportSender {
void InitializeAudio(const CastTransportRtpConfig& config,
const RtcpCastMessageCallback& cast_message_cb,
- const RtcpRttCallback& rtt_cb) final {
+ const RtcpRttCallback& rtt_cb,
+ const RtcpPliCallback& key_frame_cb) final {
audio_ssrc_ = config.ssrc;
- transport_->InitializeAudio(config, cast_message_cb, rtt_cb);
+ transport_->InitializeAudio(config, cast_message_cb, rtt_cb, key_frame_cb);
}
void InitializeVideo(const CastTransportRtpConfig& config,
const RtcpCastMessageCallback& cast_message_cb,
- const RtcpRttCallback& rtt_cb) final {
+ const RtcpRttCallback& rtt_cb,
+ const RtcpPliCallback& key_frame_cb) final {
video_ssrc_ = config.ssrc;
- transport_->InitializeVideo(config, cast_message_cb, rtt_cb);
+ transport_->InitializeVideo(config, cast_message_cb, rtt_cb, key_frame_cb);
}
void InsertFrame(uint32_t ssrc, const EncodedFrame& frame) final {
@@ -162,6 +164,10 @@ class CastTransportSenderWrapper : public CastTransportSender {
transport_->AddRtpReceiverReport(rtp_report_block);
}
+ void AddPli(const RtcpPliMessage& pli_message) final {
+ transport_->AddPli(pli_message);
+ }
+
void SendRtcpFromRtpReceiver() final {
transport_->SendRtcpFromRtpReceiver();
}
« no previous file with comments | « media/cast/sender/video_sender_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698