Revert "Reland of Remove SendPacer from ViEEncoder
Revert due to crbug/609816. Investigation is ongoing. This reverts commit 28a44564c93b12839618dc0da2e2541ec6a0db23. (https://codereview.webrtc.org/1947873002/) TBR=stefan@webrtc.org, ivoc@webrtc.org, BUG=609816, webrtc:5687 Review-Url: https://codereview.webrtc.org/1958053002 Cr-Commit-Position: refs/heads/master@{#12663}
This commit is contained in:
@ -28,8 +28,6 @@ namespace webrtc {
|
||||
|
||||
class BitrateControllerImpl : public BitrateController {
|
||||
public:
|
||||
// TODO(perkj): BitrateObserver has been deprecated and is not used in WebRTC.
|
||||
// |observer| is left for project that is not yet updated.
|
||||
BitrateControllerImpl(Clock* clock, BitrateObserver* observer);
|
||||
virtual ~BitrateControllerImpl() {}
|
||||
|
||||
@ -52,11 +50,6 @@ class BitrateControllerImpl : public BitrateController {
|
||||
|
||||
void SetEventLog(RtcEventLog* event_log) override;
|
||||
|
||||
// Returns true if the parameters have changed since the last call.
|
||||
bool GetNetworkParameters(uint32_t* bitrate,
|
||||
uint8_t* fraction_loss,
|
||||
int64_t* rtt) override;
|
||||
|
||||
int64_t TimeUntilNextProcess() override;
|
||||
void Process() override;
|
||||
|
||||
@ -71,16 +64,20 @@ class BitrateControllerImpl : public BitrateController {
|
||||
int number_of_packets,
|
||||
int64_t now_ms);
|
||||
|
||||
// Deprecated
|
||||
void MaybeTriggerOnNetworkChanged();
|
||||
|
||||
// Returns true if the parameters have changed since the last call.
|
||||
bool GetNetworkParameters(uint32_t* bitrate,
|
||||
uint8_t* fraction_loss,
|
||||
int64_t* rtt);
|
||||
|
||||
void OnNetworkChanged(uint32_t bitrate,
|
||||
uint8_t fraction_loss, // 0 - 255.
|
||||
int64_t rtt) EXCLUSIVE_LOCKS_REQUIRED(critsect_);
|
||||
|
||||
// Used by process thread.
|
||||
Clock* const clock_;
|
||||
BitrateObserver* const observer_;
|
||||
Clock* clock_;
|
||||
BitrateObserver* observer_;
|
||||
int64_t last_bitrate_update_ms_;
|
||||
|
||||
rtc::CriticalSection critsect_;
|
||||
|
||||
Reference in New Issue
Block a user