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

Unified Diff: media/cast/sender/frame_sender.h

Issue 562653004: Cast: First stab at implementing adaptive latency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 years, 3 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/audio_sender.cc ('k') | media/cast/sender/frame_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/frame_sender.h
diff --git a/media/cast/sender/frame_sender.h b/media/cast/sender/frame_sender.h
index 89e654d81baa7c631e8d04e5e21cbf0d219d3710..3c8f884457c06453c115631559a4f3ca3c8572f9 100644
--- a/media/cast/sender/frame_sender.h
+++ b/media/cast/sender/frame_sender.h
@@ -29,7 +29,8 @@ class FrameSender {
int rtp_timebase,
uint32 ssrc,
double max_frame_rate,
- base::TimeDelta playout_delay,
+ base::TimeDelta min_playout_delay,
+ base::TimeDelta max_playout_delay,
CongestionControl* congestion_control);
virtual ~FrameSender();
@@ -108,6 +109,8 @@ class FrameSender {
// environment (sender/receiver hardware performance, network conditions,
// etc.).
base::TimeDelta target_playout_delay_;
+ base::TimeDelta min_playout_delay_;
+ base::TimeDelta max_playout_delay_;
// If true, we transmit the target playout delay to the receiver.
bool send_target_playout_delay_;
@@ -155,6 +158,9 @@ class FrameSender {
// buffer doesn't overflow.
scoped_ptr<CongestionControl> congestion_control_;
+ // The most recently measured round trip time.
+ base::TimeDelta current_round_trip_time_;
+
private:
const bool is_audio_;
@@ -164,9 +170,6 @@ class FrameSender {
base::TimeTicks frame_reference_times_[256];
RtpTimestamp frame_rtp_timestamps_[256];
- // The most recently measured round trip time.
- base::TimeDelta current_round_trip_time_;
-
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<FrameSender> weak_factory_;
« no previous file with comments | « media/cast/sender/audio_sender.cc ('k') | media/cast/sender/frame_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698