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

Unified Diff: media/cast/transport/cast_transport_sender.h

Issue 343523005: Cast: Avoid retransmit if we sent the same packet recently (less than RTT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix Created 6 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 | « media/cast/test/cast_benchmarks.cc ('k') | media/cast/transport/cast_transport_sender_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/transport/cast_transport_sender.h
diff --git a/media/cast/transport/cast_transport_sender.h b/media/cast/transport/cast_transport_sender.h
index 2556a8bd3d7b825a3a8a962b66a099671e0ecfd1..e88f2f4f09809a6d99fa1e28f1f81ce8f797d399 100644
--- a/media/cast/transport/cast_transport_sender.h
+++ b/media/cast/transport/cast_transport_sender.h
@@ -96,11 +96,14 @@ class CastTransportSender : public base::NonThreadSafe {
// frame to be re-transmitted.
// If |cancel_rtx_if_not_in_list| is used as an optimization to cancel
// pending re-transmission requests of packets not listed in
- // |missing_packets|.
+ // |missing_packets|. If the requested packet(s) were sent recently
+ // (how long is specified by |dedupe_window|) then this re-transmit
+ // will be ignored.
virtual void ResendPackets(
bool is_audio,
const MissingFramesAndPacketsMap& missing_packets,
- bool cancel_rtx_if_not_in_list) = 0;
+ bool cancel_rtx_if_not_in_list,
+ base::TimeDelta dedupe_window) = 0;
};
} // namespace transport
« no previous file with comments | « media/cast/test/cast_benchmarks.cc ('k') | media/cast/transport/cast_transport_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698