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

Issue 1441673002: Move BitrateAllocator from BitrateController logic to Call. (Closed)

Created:
5 years, 1 month ago by mflodman
Modified:
5 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, stefan-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, mflodman, peah-webrtc, the sun, perkj_webrtc, andresp
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move BitrateAllocator from BitrateController logic to Call. This is a step on the way to have variable bitrate for audio and is intended to be as much of a no-op as possible. BUG=webrtc:5079 Committed: https://crrev.com/0e7e259ebd69993bb5670a991f43aa1b06c9bf9e Cr-Commit-Position: refs/heads/master@{#10630}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Changed method name. #

Patch Set 3 : Rebase #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -568 lines) Patch
M webrtc/call/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A + webrtc/call/bitrate_allocator.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + webrtc/call/bitrate_allocator.cc View 2 chunks +3 lines, -2 lines 0 comments Download
A + webrtc/call/bitrate_allocator_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/call/call.cc View 1 2 9 chunks +44 lines, -8 lines 0 comments Download
M webrtc/call/congestion_controller.h View 1 3 chunks +8 lines, -12 lines 0 comments Download
M webrtc/call/congestion_controller.cc View 1 5 chunks +10 lines, -26 lines 0 comments Download
M webrtc/call/webrtc_call.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/bitrate_controller/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
D webrtc/modules/bitrate_controller/bitrate_allocator.cc View 1 chunk +0 lines, -193 lines 0 comments Download
D webrtc/modules/bitrate_controller/bitrate_allocator_unittest.cc View 1 chunk +0 lines, -212 lines 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
D webrtc/modules/bitrate_controller/include/bitrate_allocator.h View 1 chunk +0 lines, -102 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 chunk +1 line, -0 lines 4 comments Download
M webrtc/video/video_send_stream.h View 3 chunks +3 lines, -0 lines 0 comments Download
M webrtc/video/video_send_stream.cc View 5 chunks +7 lines, -2 lines 0 comments Download
M webrtc/video_engine/vie_encoder.h View 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/video_engine/vie_encoder.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/webrtc_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
mflodman
Erik, Would you mind taking a look at this CL?
5 years, 1 month ago (2015-11-12 13:36:17 UTC) #2
mflodman
https://codereview.webrtc.org/1441673002/diff/1/webrtc/call/bitrate_allocator.cc File webrtc/call/bitrate_allocator.cc (right): https://codereview.webrtc.org/1441673002/diff/1/webrtc/call/bitrate_allocator.cc#newcode140 webrtc/call/bitrate_allocator.cc:140: static_cast<uint32_t>(bitrate_observers_.size()); call-folder has stricter compile settings than modules/bitrate_controller and ...
5 years, 1 month ago (2015-11-12 13:52:50 UTC) #3
sprang_webrtc
https://codereview.webrtc.org/1441673002/diff/1/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/1441673002/diff/1/webrtc/call/call.cc#newcode560 webrtc/call/call.cc:560: Wouldn't be even better to move this straight into ...
5 years, 1 month ago (2015-11-12 14:30:22 UTC) #4
mflodman
Erik, PTAL. https://codereview.webrtc.org/1441673002/diff/1/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/1441673002/diff/1/webrtc/call/call.cc#newcode560 webrtc/call/call.cc:560: On 2015/11/12 14:30:22, språng wrote: > Wouldn't ...
5 years, 1 month ago (2015-11-12 16:16:41 UTC) #5
sprang_webrtc
lgtm https://codereview.webrtc.org/1441673002/diff/1/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/1441673002/diff/1/webrtc/call/call.cc#newcode560 webrtc/call/call.cc:560: On 2015/11/12 16:16:40, mflodman wrote: > On 2015/11/12 ...
5 years, 1 month ago (2015-11-12 16:30:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441673002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441673002/20001
5 years, 1 month ago (2015-11-12 16:33:36 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_gn_rel/builds/6936) ios32_sim_dbg on tryserver.webrtc (JOB_FAILED, ...
5 years, 1 month ago (2015-11-12 16:34:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441673002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441673002/40001
5 years, 1 month ago (2015-11-12 16:40:40 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)
5 years, 1 month ago (2015-11-12 18:40:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441673002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441673002/40001
5 years, 1 month ago (2015-11-13 04:56:16 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-13 05:02:46 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/0e7e259ebd69993bb5670a991f43aa1b06c9bf9e Cr-Commit-Position: refs/heads/master@{#10630}
5 years, 1 month ago (2015-11-13 05:02:56 UTC) #19
stefan-webrtc
nice change. i have one small request for follow-up. :) https://codereview.webrtc.org/1441673002/diff/40001/webrtc/video/video_receive_stream.cc File webrtc/video/video_receive_stream.cc (right): https://codereview.webrtc.org/1441673002/diff/40001/webrtc/video/video_receive_stream.cc#newcode21 ...
5 years, 1 month ago (2015-11-13 08:29:27 UTC) #21
mflodman
5 years, 1 month ago (2015-11-13 08:35:36 UTC) #22
Message was sent while issue was closed.
https://codereview.webrtc.org/1441673002/diff/40001/webrtc/video/video_receiv...
File webrtc/video/video_receive_stream.cc (right):

https://codereview.webrtc.org/1441673002/diff/40001/webrtc/video/video_receiv...
webrtc/video/video_receive_stream.cc:21: #include
"webrtc/modules/bitrate_controller/include/bitrate_controller.h"
On 2015/11/13 08:29:27, stefan-webrtc (holmer) wrote:
> Why is this needed in video_receive_stream.cc?

It is needed for the line of code you commented on below and was incorrectly not
added here previously.

https://codereview.webrtc.org/1441673002/diff/40001/webrtc/video/video_receiv...
webrtc/video/video_receive_stream.cc:165: CreateRtcpBandwidthObserver(),
On 2015/11/13 08:29:27, stefan-webrtc (holmer) wrote:
> Is it possible to follow up with removing or setting this ot nullptr if this
is
> a receive channel? Seems a bit odd that we include bitrate_controller.h in
this
> file.

Absolutely, I'll take a look at this and I totally agree about it's weird to
have it here.

Powered by Google App Engine
This is Rietveld 408576698