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

Issue 1766653002: Replace SetCapturer and SetCaptureDevice by SetSource. (Closed)

Created:
4 years, 9 months ago by nisse-webrtc
Modified:
4 years, 8 months ago
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

Replace SetCapturer and SetCaptureDevice by SetSource. Drop return value. BUG=webrtc:5426 Committed: https://crrev.com/2ded9b19d1cb2ad4cf4d69c34094fbddc3809888 Cr-Commit-Position: refs/heads/master@{#12291}

Patch Set 1 #

Patch Set 2 : Rebase, and update CVOSetHeaderExtensionBeforeAddSendStream test. #

Patch Set 3 : Make SetSource tolerate unknown ssrc and source == NULL. #

Total comments: 12

Patch Set 4 : Drop redundant .find call. Expand a TODO comment. #

Patch Set 5 : Rebase. #

Patch Set 6 : Work-in-progress, after applying 1790633002. #

Total comments: 7

Patch Set 7 : 'For pre-adaptation frame size, simply record the size of the first frame. Revert GetInfo method.' #

Patch Set 8 : Rebase. #

Patch Set 9 : Revert temporary unrelated changes. #

Patch Set 10 : Also revert VideoTrack test changes. #

Total comments: 5

Patch Set 11 : Delete GetVideoCapturer(!) and address other nits. #

Total comments: 2

Patch Set 12 : Delete VideoCapturer::frame_stats_crit_ #

Total comments: 4

Patch Set 13 : Formatting tweaks and TODO updates. #

Total comments: 3

Patch Set 14 : Rebased. #

Total comments: 11

Patch Set 15 : Rebase. #

Patch Set 16 : Comment tweaks, and one NULL replaced by nullptr. #

Total comments: 1

Patch Set 17 : Delete VideoEngineOverride template. Delete objc capturer property. #

Patch Set 18 : Keep capturer property, but without GetVideoCapturer. #

Patch Set 19 : Keep a raw capturer pointer in an instance variable. #

Patch Set 20 : Fix objc _capturer declaration. #

Patch Set 21 : Try crude void* hack. #

Patch Set 22 : Attempt to fix compile errors. #

Patch Set 23 : Tentative fix to threading problems. #

Patch Set 24 : Rebase. #

Total comments: 4

Patch Set 25 : rebase #

Patch Set 26 : Move objc instance variables to the implementation file. #

Total comments: 2

Patch Set 27 : Objc spacing tweaks. #

Patch Set 28 : Rebased, no longer any proxy object changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -352 lines) Patch
M talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +10 lines, -10 lines 0 comments Download
M webrtc/api/mediastreaminterface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +0 lines, -9 lines 0 comments Download
M webrtc/api/mediastreamprovider.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/api/objc/RTCAVFoundationVideoSource.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +10 lines, -10 lines 0 comments Download
M webrtc/api/rtpsender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +7 lines, -11 lines 0 comments Download
M webrtc/api/rtpsenderreceiver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +19 lines, -32 lines 0 comments Download
M webrtc/api/videocapturertracksource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/api/videocapturertracksource_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/api/videosourceproxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/api/videotracksource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/api/webrtcsession.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +4 lines, -9 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/base/fakemediaengine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -6 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +5 lines, -3 lines 0 comments Download
M webrtc/media/base/videoengine_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 16 chunks +22 lines, -95 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 6 chunks +9 lines, -11 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 15 chunks +42 lines, -77 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 55 chunks +57 lines, -59 lines 0 comments Download
M webrtc/pc/channel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -2 lines 0 comments Download
M webrtc/pc/channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 81 (26 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766653002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766653002/1
4 years, 9 months ago (2016-03-04 09:52:00 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/11435) ios64_sim_dbg on ...
4 years, 9 months ago (2016-03-04 09:55:30 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766653002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766653002/20001
4 years, 9 months ago (2016-03-04 10:06:19 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_ubsan_vptr on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan_vptr/builds/770)
4 years, 9 months ago (2016-03-04 10:17:44 UTC) #8
nisse-webrtc
Here's a first attempt at deleting SetCapturer. Stats are disabled (I'm curious if there are ...
4 years, 9 months ago (2016-03-04 10:36:46 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766653002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766653002/40001
4 years, 9 months ago (2016-03-04 12:32:13 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 9 months ago (2016-03-04 14:33:05 UTC) #14
pthatcher1
https://codereview.webrtc.org/1766653002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1766653002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1282 webrtc/media/engine/webrtcvideoengine2.cc:1282: send_streams_.find(ssrc)->second->SetSource(source); Why not kv->second->SetSource(source)? https://codereview.webrtc.org/1766653002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1555 webrtc/media/engine/webrtcvideoengine2.cc:1555: // TODO(nisse): Keep? ...
4 years, 9 months ago (2016-03-05 01:45:41 UTC) #15
nisse-webrtc
("done" means in my local copy, no update to the cl today). https://codereview.webrtc.org/1766653002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc ...
4 years, 9 months ago (2016-03-15 16:28:00 UTC) #16
pthatcher1
https://codereview.webrtc.org/1766653002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1766653002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1555 webrtc/media/engine/webrtcvideoengine2.cc:1555: // TODO(nisse): Keep? Yes, I saw that CL while ...
4 years, 9 months ago (2016-03-15 16:56:46 UTC) #17
nisse-webrtc
In patchset 6, I had to temporarily add in cl 1790633002, since otherwise tests fail ...
4 years, 9 months ago (2016-03-17 15:16:46 UTC) #18
perkj_webrtc
https://codereview.webrtc.org/1766653002/diff/100001/webrtc/api/videotracksource.cc File webrtc/api/videotracksource.cc (right): https://codereview.webrtc.org/1766653002/diff/100001/webrtc/api/videotracksource.cc#newcode62 webrtc/api/videotracksource.cc:62: source_->GetInfo(info); Humm. This looks like a potential race with ...
4 years, 9 months ago (2016-03-20 15:01:46 UTC) #19
nisse-webrtc
https://codereview.webrtc.org/1766653002/diff/100001/webrtc/media/base/videosourceinterface.h File webrtc/media/base/videosourceinterface.h (right): https://codereview.webrtc.org/1766653002/diff/100001/webrtc/media/base/videosourceinterface.h#newcode53 webrtc/media/base/videosourceinterface.h:53: virtual void GetInfo(VideoSourceInfo *info) = 0; On 2016/03/20 15:01:46, ...
4 years, 9 months ago (2016-03-21 09:18:50 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766653002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766653002/120001
4 years, 9 months ago (2016-03-21 09:19:51 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/11923)
4 years, 9 months ago (2016-03-21 11:50:56 UTC) #24
nisse-webrtc
Adding pbos, who didn't quite like the latest statistics hack. So what should we do? ...
4 years, 9 months ago (2016-03-21 13:12:07 UTC) #26
perkj_webrtc
On 2016/03/21 13:12:07, nisse-webrtc wrote: > Adding pbos, who didn't quite like the latest statistics ...
4 years, 9 months ago (2016-03-21 15:58:14 UTC) #27
perkj_webrtc
I think this looks good. But can you remove VideoSourceInteface::GetCapturer in this cl? https://codereview.webrtc.org/1766653002/diff/180001/webrtc/api/mediastreaminterface.h File ...
4 years, 9 months ago (2016-03-22 08:56:36 UTC) #28
nisse-webrtc
GetVideoCapturer now gone! If you can now only agree on how to do the pre-adaptation ...
4 years, 9 months ago (2016-03-22 10:18:59 UTC) #29
pbos-webrtc
On 2016/03/22 10:18:59, nisse-webrtc wrote: > GetVideoCapturer now gone! > > If you can now ...
4 years, 9 months ago (2016-03-22 13:50:22 UTC) #30
pbos-webrtc
Adding magjed@ because I'd like his opinion on options 2 & 3.
4 years, 9 months ago (2016-03-22 13:50:49 UTC) #32
magjed_webrtc
On 2016/03/22 13:50:49, pbos-webrtc wrote: > Adding magjed@ because I'd like his opinion on options ...
4 years, 9 months ago (2016-03-22 13:57:35 UTC) #33
perkj_webrtc
I think this is the right approach and its simple. An original frame size field ...
4 years, 9 months ago (2016-03-22 14:00:42 UTC) #35
nisse-webrtc
@pthatcher: I'd really like to hear your opinion on how to get the pre-adaptation frame ...
4 years, 9 months ago (2016-03-22 14:16:50 UTC) #37
nisse-webrtc
On 2016/03/22 13:57:35, magjed_webrtc wrote: > On 2016/03/22 13:50:49, pbos-webrtc wrote: > > Adding magjed@ ...
4 years, 9 months ago (2016-03-22 14:24:32 UTC) #38
pthatcher1
On 2016/03/22 14:24:32, nisse-webrtc wrote: > On 2016/03/22 13:57:35, magjed_webrtc wrote: > > On 2016/03/22 ...
4 years, 9 months ago (2016-03-22 21:42:27 UTC) #39
pbos-webrtc
On 2016/03/22 21:42:27, pthatcher1 wrote: > On 2016/03/22 14:24:32, nisse-webrtc wrote: > > On 2016/03/22 ...
4 years, 9 months ago (2016-03-22 21:45:22 UTC) #40
pthatcher1
lgtm Even though I prefer #3, if this hack works for now, go ahead and ...
4 years, 9 months ago (2016-03-22 21:47:11 UTC) #41
nisse-webrtc
New patch set, with only formatting tweaks and updated TODO comments. pbos, do you insist ...
4 years, 9 months ago (2016-03-23 08:28:11 UTC) #42
pbos-webrtc
https://codereview.webrtc.org/1766653002/diff/240001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1766653002/diff/240001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1657 webrtc/media/engine/webrtcvideoengine2.cc:1657: source_->AddOrUpdateSink(this, sink_wants_); This causes the current code to be ...
4 years, 9 months ago (2016-03-23 12:45:23 UTC) #43
nisse-webrtc
After discussion with pbos, I think I'll go back to the GetInfo approach in patchset ...
4 years, 9 months ago (2016-03-23 14:07:03 UTC) #44
perkj_webrtc
It feels to me that getting the stats for what resolution the capturer is actually ...
4 years, 9 months ago (2016-03-24 11:02:50 UTC) #45
nisse-webrtc
On 2016/03/24 11:02:50, perkj_webrtc wrote: > So instead of adding a stats method on rtc::VideoSourceInterface ...
4 years, 9 months ago (2016-03-24 11:36:33 UTC) #46
nisse-webrtc
On 2016/03/24 11:36:33, nisse-webrtc wrote: > On 2016/03/24 11:02:50, perkj_webrtc wrote: > > So instead ...
4 years, 9 months ago (2016-03-24 12:48:33 UTC) #47
pthatcher1
On 2016/03/24 12:48:33, nisse-webrtc wrote: > On 2016/03/24 11:36:33, nisse-webrtc wrote: > > On 2016/03/24 ...
4 years, 9 months ago (2016-03-24 19:08:43 UTC) #48
pbos-webrtc
overall LG, I wanna see this rebased on top of the other stats CL first ...
4 years, 8 months ago (2016-03-31 14:14:31 UTC) #49
nisse-webrtc
Now rebased on top of the stats changes which were landed this morning. https://codereview.webrtc.org/1766653002/diff/260001/webrtc/api/rtpsender.cc File ...
4 years, 8 months ago (2016-04-01 09:35:39 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766653002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766653002/300001
4 years, 8 months ago (2016-04-01 09:36:05 UTC) #52
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_rel/builds/12551)
4 years, 8 months ago (2016-04-01 09:41:52 UTC) #54
pbos-webrtc
lgtm, thanks! I trust you'll take care of the remaining compile failures https://codereview.webrtc.org/1766653002/diff/260001/webrtc/media/base/mediachannel.h File webrtc/media/base/mediachannel.h ...
4 years, 8 months ago (2016-04-01 10:55:28 UTC) #55
nisse-webrtc
@tkchin: I need a little advice on the small objc changes. This cl deletes the ...
4 years, 8 months ago (2016-04-01 13:08:53 UTC) #57
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766653002/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766653002/420001
4 years, 8 months ago (2016-04-01 13:09:12 UTC) #59
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 8 months ago (2016-04-01 15:09:45 UTC) #61
nisse-webrtc
The android failures on patch set 22 were due to a threading bug, related to ...
4 years, 8 months ago (2016-04-05 09:05:55 UTC) #62
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766653002/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766653002/460001
4 years, 8 months ago (2016-04-05 09:07:14 UTC) #64
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-05 10:26:37 UTC) #66
nisse-webrtc
On 2016/04/05 09:05:55, nisse-webrtc wrote: > > To try to fix this, I'm extending the ...
4 years, 8 months ago (2016-04-05 12:18:25 UTC) #67
tkchin_webrtc
https://codereview.webrtc.org/1766653002/diff/460001/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm File talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm (right): https://codereview.webrtc.org/1766653002/diff/460001/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm#newcode37 talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm:37: @implementation RTCAVFoundationVideoSource just add the instance var here to ...
4 years, 8 months ago (2016-04-05 16:10:28 UTC) #68
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766653002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766653002/500001
4 years, 8 months ago (2016-04-06 08:09:19 UTC) #70
nisse-webrtc
In other notes, I have confirmed that after rebasing on top of https://codereview.webrtc.org/1859933002/, the threading ...
4 years, 8 months ago (2016-04-06 08:11:48 UTC) #71
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 09:24:59 UTC) #73
tkchin_webrtc
lgtm looking forward to not needing a videocapturer anymore in the future though so we ...
4 years, 8 months ago (2016-04-06 19:41:47 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766653002/540001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766653002/540001
4 years, 8 months ago (2016-04-08 08:34:57 UTC) #77
commit-bot: I haz the power
Committed patchset #28 (id:540001)
4 years, 8 months ago (2016-04-08 09:24:01 UTC) #79
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 09:24:12 UTC) #81
Message was sent while issue was closed.
Patchset 28 (id:??) landed as
https://crrev.com/2ded9b19d1cb2ad4cf4d69c34094fbddc3809888
Cr-Commit-Position: refs/heads/master@{#12291}

Powered by Google App Engine
This is Rietveld 408576698