Remove all old suspension logic.

I'm also removing media_optimization_unittest.cc, since it only tested the
suspension logic and nothing else.

R=pbos@webrtc.org

Review URL: https://codereview.webrtc.org/2119503002 .

Cr-Commit-Position: refs/heads/master@{#13355}
This commit is contained in:
mflodman
2016-07-01 09:00:03 +02:00
parent b9e7b4ad66
commit e15032c750
9 changed files with 1 additions and 206 deletions

View File

@ -59,13 +59,6 @@ class MediaOptimization {
int64_t round_trip_time_ms);
void EnableFrameDropper(bool enable);
// Lets the sender suspend video when the rate drops below
// |threshold_bps|, and turns back on when the rate goes back up above
// |threshold_bps| + |window_bps|.
void SuspendBelowMinBitrate(int threshold_bps, int window_bps);
bool IsVideoSuspended() const;
bool DropFrame();
// Informs Media Optimization of encoded output.
@ -133,10 +126,6 @@ class MediaOptimization {
uint32_t avg_sent_bit_rate_bps_ GUARDED_BY(crit_sect_);
uint32_t avg_sent_framerate_ GUARDED_BY(crit_sect_);
int num_layers_ GUARDED_BY(crit_sect_);
bool suspension_enabled_ GUARDED_BY(crit_sect_);
bool video_suspended_ GUARDED_BY(crit_sect_);
int suspension_threshold_bps_ GUARDED_BY(crit_sect_);
int suspension_window_bps_ GUARDED_BY(crit_sect_);
};
} // namespace media_optimization
} // namespace webrtc