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

Issue 1917793002: Remove SendPacer from ViEEncoder (Closed)

Created:
4 years, 8 months ago by perkj_webrtc
Modified:
4 years, 7 months ago
Reviewers:
stefan-webrtc, mflodman
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhuangzesen_agora.io, zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, the sun, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove SendPacer from ViEEncoder This CL moves the logic where the ViEEncoder pause if the pacer is full to the BitrateController. If the queue is full, the controller reports a bitrate of zero to Call (and BitrateAllocator) BUG=webrtc:5687 Committed: https://crrev.com/857c5ccdb56e4c94196f7c6227abd5993c95abe2 Cr-Commit-Position: refs/heads/master@{#12620}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Passes unittests #

Patch Set 5 : Fixed failing tests. #

Patch Set 6 : Added unittest to BitrateController #

Patch Set 7 : Make sure zero is reported to encoder when pacer is full. #

Patch Set 8 : Rebased #

Total comments: 24

Patch Set 9 : #

Patch Set 10 : Addressed code review comments. #

Total comments: 21

Patch Set 11 : Addressed comments. #

Patch Set 12 : Rebased #

Total comments: 4

Patch Set 13 : Renamed SenderDelegate to PacketSender. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+542 lines, -363 lines) Patch
M webrtc/audio/audio_receive_stream_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M webrtc/audio/audio_send_stream_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/call/bitrate_allocator.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -3 lines 0 comments Download
M webrtc/call/bitrate_allocator.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -13 lines 0 comments Download
M webrtc/call/bitrate_allocator_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -0 lines 0 comments Download
M webrtc/call/call.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -6 lines 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -7 lines 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -5 lines 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -2 lines 0 comments Download
M webrtc/modules/bitrate_controller/include/bitrate_controller.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +13 lines, -1 line 0 comments Download
M webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/congestion_controller/congestion_controller.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +69 lines, -18 lines 0 comments Download
A webrtc/modules/congestion_controller/congestion_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +111 lines, -0 lines 0 comments Download
M webrtc/modules/congestion_controller/include/congestion_controller.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +35 lines, -7 lines 0 comments Download
M webrtc/modules/congestion_controller/include/mock/mock_congestion_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -4 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/pacing/mock/mock_paced_sender.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/pacing/paced_sender.h View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +21 lines, -17 lines 0 comments Download
M webrtc/modules/pacing/paced_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +36 lines, -27 lines 0 comments Download
M webrtc/modules/pacing/paced_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 23 chunks +159 lines, -205 lines 0 comments Download
M webrtc/modules/pacing/packet_router.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/packet_sender.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/packet_sender.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -9 lines 0 comments Download
M webrtc/video/encoder_state_feedback_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -10 lines 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -4 lines 0 comments Download
M webrtc/video/vie_encoder.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -6 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +3 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (8 generated)
perkj_webrtc
Hi Can you please review?
4 years, 8 months ago (2016-04-26 15:03:15 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/1917793002/diff/140001/webrtc/call/bitrate_allocator.cc File webrtc/call/bitrate_allocator.cc (right): https://codereview.webrtc.org/1917793002/diff/140001/webrtc/call/bitrate_allocator.cc#newcode34 webrtc/call/bitrate_allocator.cc:34: void BitrateAllocator::OnNetworkChanged(uint32_t bitrate, Is there a point in changing ...
4 years, 7 months ago (2016-04-29 10:48:39 UTC) #4
perkj_webrtc
Please? https://codereview.webrtc.org/1917793002/diff/140001/webrtc/call/bitrate_allocator.cc File webrtc/call/bitrate_allocator.cc (right): https://codereview.webrtc.org/1917793002/diff/140001/webrtc/call/bitrate_allocator.cc#newcode34 webrtc/call/bitrate_allocator.cc:34: void BitrateAllocator::OnNetworkChanged(uint32_t bitrate, On 2016/04/29 10:48:38, stefan-webrtc (holmer) ...
4 years, 7 months ago (2016-05-02 11:29:10 UTC) #5
stefan-webrtc
Looks a lot better! https://codereview.webrtc.org/1917793002/diff/180001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/1917793002/diff/180001/webrtc/call/call.cc#newcode696 webrtc/call/call.cc:696: congestion_controller_->SetAllocatedSendBitrate(allocated_bitrate_bps, Shouldn't this be pacer_bitrate_bps? ...
4 years, 7 months ago (2016-05-02 12:56:47 UTC) #6
perkj_webrtc
PTAL https://codereview.webrtc.org/1917793002/diff/180001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/1917793002/diff/180001/webrtc/call/call.cc#newcode696 webrtc/call/call.cc:696: congestion_controller_->SetAllocatedSendBitrate(allocated_bitrate_bps, On 2016/05/02 12:56:47, stefan-webrtc (holmer) wrote: > ...
4 years, 7 months ago (2016-05-02 14:45:35 UTC) #7
mflodman
High level LGTM with one question! Deferringthe detailed review to Stefan, who I know has ...
4 years, 7 months ago (2016-05-03 11:30:10 UTC) #8
stefan-webrtc
lgtm https://codereview.webrtc.org/1917793002/diff/180001/webrtc/modules/pacing/paced_sender.h File webrtc/modules/pacing/paced_sender.h (right): https://codereview.webrtc.org/1917793002/diff/180001/webrtc/modules/pacing/paced_sender.h#newcode36 webrtc/modules/pacing/paced_sender.h:36: class SenderDelegate { On 2016/05/02 14:45:35, perkj_webrtc wrote: ...
4 years, 7 months ago (2016-05-03 12:21:14 UTC) #9
perkj_webrtc
https://codereview.webrtc.org/1917793002/diff/220001/webrtc/modules/bitrate_controller/bitrate_controller_impl.cc File webrtc/modules/bitrate_controller/bitrate_controller_impl.cc (right): https://codereview.webrtc.org/1917793002/diff/220001/webrtc/modules/bitrate_controller/bitrate_controller_impl.cc#newcode213 webrtc/modules/bitrate_controller/bitrate_controller_impl.cc:213: if (GetNetworkParameters(&bitrate_bps, &fraction_loss, &rtt)) { On 2016/05/03 12:21:14, stefan-webrtc ...
4 years, 7 months ago (2016-05-03 13:56:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917793002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917793002/240001
4 years, 7 months ago (2016-05-03 13:56:14 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 7 months ago (2016-05-03 15:56:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917793002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917793002/240001
4 years, 7 months ago (2016-05-04 07:05:53 UTC) #17
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 7 months ago (2016-05-04 07:09:59 UTC) #19
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/857c5ccdb56e4c94196f7c6227abd5993c95abe2 Cr-Commit-Position: refs/heads/master@{#12620}
4 years, 7 months ago (2016-05-04 07:10:03 UTC) #21
perkj_webrtc
4 years, 7 months ago (2016-05-04 08:07:52 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:240001) has been created in
https://codereview.webrtc.org/1947853002/ by perkj@webrtc.org.

The reason for reverting is: Fails in the waterfall here: 

https://build.chromium.org/p/client.webrtc/builders/Win32%20Debug/builds/7832....

Powered by Google App Engine
This is Rietveld 408576698