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

Issue 1838413002: Combining SetVideoSend and SetSource into one method. (Closed)

Created:
4 years, 8 months ago by Taylor Brandstetter
Modified:
4 years, 6 months ago
Reviewers:
pbos-webrtc, pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Combining SetVideoSend and SetSource into one method. This means there's only one thread hop to the worker thread. At the video engine level, SetOptions and SetSource are combined into one method (all within the same critical section) which ensures that no frame will be encoded while SetVideoSend is only partially finished. BUG=webrtc:5691 Committed: https://crrev.com/5a4a75ae48382d8a85105d7fcd173718db8501c5 Cr-Commit-Position: refs/heads/master@{#13022}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Removing obsolete comment. #

Patch Set 3 : Merging with refactoring (changing video capturer to video source) #

Patch Set 4 : Fixing comments and other minor things #

Total comments: 7

Patch Set 5 : Addressing pbos@'s comments. #

Total comments: 7

Patch Set 6 : Addressing pthatcher@'s comments. #

Patch Set 7 : Merge with master. #

Patch Set 8 : Adding TODO. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -318 lines) Patch
M webrtc/api/mediastreamprovider.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -7 lines 0 comments Download
M webrtc/api/rtpsender.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/rtpsender.cc View 1 2 3 4 5 6 5 chunks +11 lines, -16 lines 0 comments Download
M webrtc/api/rtpsenderreceiver_unittest.cc View 1 2 3 4 5 6 9 chunks +37 lines, -41 lines 0 comments Download
M webrtc/api/webrtcsession.h View 1 2 3 4 5 6 1 chunk +5 lines, -6 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 3 4 5 6 2 chunks +10 lines, -23 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M webrtc/media/base/fakemediaengine.h View 1 2 3 4 5 6 1 chunk +6 lines, -7 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 1 2 3 4 5 6 1 chunk +7 lines, -8 lines 0 comments Download
M webrtc/media/base/videoengine_unittest.h View 1 2 15 chunks +29 lines, -25 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 2 3 4 5 6 4 chunks +8 lines, -10 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 4 5 6 11 chunks +61 lines, -75 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 3 4 5 6 57 chunks +74 lines, -75 lines 0 comments Download
M webrtc/pc/channel.h View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M webrtc/pc/channel.cc View 1 2 3 4 5 6 1 chunk +4 lines, -9 lines 0 comments Download
M webrtc/pc/channel_unittest.cc View 1 2 3 4 5 6 2 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
Taylor Brandstetter
pbos: PTAL at webrtc/media/* pthatcher: PTAL at everything else https://codereview.webrtc.org/1838413002/diff/1/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (left): https://codereview.webrtc.org/1838413002/diff/1/webrtc/media/engine/webrtcvideoengine2.cc#oldcode1647 webrtc/media/engine/webrtcvideoengine2.cc:1647: ...
4 years, 8 months ago (2016-03-29 22:30:35 UTC) #2
pbos-webrtc
As I understand this is pending/needs to be rebased on top of some refactoring by ...
4 years, 8 months ago (2016-03-30 12:23:06 UTC) #3
Taylor Brandstetter
On 2016/03/30 12:23:06, pbos-webrtc wrote: > As I understand this is pending/needs to be rebased ...
4 years, 8 months ago (2016-03-30 16:24:31 UTC) #4
Taylor Brandstetter
4 years, 8 months ago (2016-03-30 16:24:39 UTC) #6
pthatcher1
This looks very good. I look forward to seeing how it looks once it's merged ...
4 years, 8 months ago (2016-03-30 17:14:14 UTC) #8
Taylor Brandstetter
This CL has been refactored; review away
4 years, 7 months ago (2016-05-13 21:09:29 UTC) #12
pbos-webrtc
lgtm, please don't submit before pthatcher@ has reviewed, I'd like a second pair of eyes ...
4 years, 7 months ago (2016-05-14 00:42:39 UTC) #13
Taylor Brandstetter
https://codereview.webrtc.org/1838413002/diff/60001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1838413002/diff/60001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1033 webrtc/media/engine/webrtcvideoengine2.cc:1033: << ", source = " << (source != nullptr ...
4 years, 7 months ago (2016-05-16 19:03:00 UTC) #14
pbos-webrtc
https://codereview.webrtc.org/1838413002/diff/60001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1838413002/diff/60001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1041 webrtc/media/engine/webrtcvideoengine2.cc:1041: LOG(LS_ERROR) << "No sending stream on ssrc " << ...
4 years, 7 months ago (2016-05-16 19:04:50 UTC) #15
Taylor Brandstetter
Pinging Peter; no rush, but just in case you missed it, this is ready for ...
4 years, 6 months ago (2016-06-01 19:21:18 UTC) #16
pthatcher1
https://codereview.webrtc.org/1838413002/diff/80001/webrtc/api/rtpsender.cc File webrtc/api/rtpsender.cc (right): https://codereview.webrtc.org/1838413002/diff/80001/webrtc/api/rtpsender.cc#newcode307 webrtc/api/rtpsender.cc:307: provider_->SetVideoSend(ssrc_, false, nullptr, nullptr); It might be more readable ...
4 years, 6 months ago (2016-06-01 22:18:04 UTC) #17
Taylor Brandstetter
https://codereview.webrtc.org/1838413002/diff/80001/webrtc/api/rtpsender.cc File webrtc/api/rtpsender.cc (right): https://codereview.webrtc.org/1838413002/diff/80001/webrtc/api/rtpsender.cc#newcode307 webrtc/api/rtpsender.cc:307: provider_->SetVideoSend(ssrc_, false, nullptr, nullptr); On 2016/06/01 22:18:03, pthatcher1 wrote: ...
4 years, 6 months ago (2016-06-02 19:12:52 UTC) #18
pthatcher1
lgtm https://codereview.webrtc.org/1838413002/diff/80001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1838413002/diff/80001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1023 webrtc/media/engine/webrtcvideoengine2.cc:1023: // method. On 2016/06/02 19:12:51, Taylor Brandstetter wrote: ...
4 years, 6 months ago (2016-06-02 22:22:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1838413002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1838413002/140001
4 years, 6 months ago (2016-06-02 22:36:51 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-02 23:23:44 UTC) #24
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 23:23:57 UTC) #26
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5a4a75ae48382d8a85105d7fcd173718db8501c5
Cr-Commit-Position: refs/heads/master@{#13022}

Powered by Google App Engine
This is Rietveld 408576698