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

Issue 1594973006: New rtc::VideoSinkInterface. (Closed)

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

New rtc::VideoSinkInterface. The plan is that this interface should be used by all classes which receive a stream of video frames, and replace the two generic classes webrtc::VideoRendererInterface and cricket::VideoRenderer. And the list goes on, there's a dozen of different classes which act as video frame sinks. At some point, we will likely add some method to handle sink properties like, e.g, maximum useful width and height. But hopefully this can be done while keeping the interface very simple. BUG=webrtc:5426 R=perkj@webrtc.org, pthatcher@webrtc.org Committed: https://crrev.com/a862d4563fbc26e52bed442de784094ae1dfe5ee Cr-Commit-Position: refs/heads/master@{#11396} Committed: https://crrev.com/e73afbaf1734043bba2b47b6afa30837dbc4a7f1 Cr-Commit-Position: refs/heads/master@{#11414}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make cricket::VideoRenderer implement rtc::VideoSinkInterface #

Patch Set 3 : Make WebRtcVideoChannel2::WebRtcVideoReceiveStream use rtc::VideoSinkInterface #

Patch Set 4 : Use rtc::VideoSinkInterface on the call chain VideoSource --> CaptureRenderAdapter #

Total comments: 8

Patch Set 5 : Addressed nits. #

Total comments: 2

Patch Set 6 : Rebased. #

Patch Set 7 : New OWNERS file for webrtc/media. #

Patch Set 8 : Workaround to not break chrome. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -119 lines) Patch
M talk/app/webrtc/mediastreaminterface.h View 2 chunks +7 lines, -1 line 0 comments Download
M talk/app/webrtc/rtpsenderreceiver_unittest.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M talk/app/webrtc/videosource.h View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M talk/app/webrtc/videosource.cc View 1 2 3 1 chunk +8 lines, -6 lines 0 comments Download
M talk/app/webrtc/videosourceinterface.h View 1 2 3 4 5 6 7 2 chunks +21 lines, -2 lines 0 comments Download
M talk/app/webrtc/videosourceproxy.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M talk/media/base/capturemanager.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M talk/media/base/capturemanager.cc View 1 2 3 4 2 chunks +14 lines, -15 lines 0 comments Download
M talk/media/base/capturemanager_unittest.cc View 1 2 3 4 7 chunks +7 lines, -17 lines 0 comments Download
M talk/media/base/capturerenderadapter.h View 1 2 3 4 5 1 chunk +5 lines, -7 lines 0 comments Download
M talk/media/base/capturerenderadapter.cc View 1 2 3 4 3 chunks +12 lines, -21 lines 0 comments Download
M talk/media/base/fakecapturemanager.h View 1 2 3 4 1 chunk +4 lines, -8 lines 0 comments Download
M talk/media/base/videorenderer.h View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M talk/media/webrtc/webrtcvideoengine2.h View 1 2 3 4 5 3 chunks +9 lines, -8 lines 0 comments Download
M talk/media/webrtc/webrtcvideoengine2.cc View 1 2 3 4 5 7 chunks +11 lines, -11 lines 0 comments Download
M talk/session/media/channelmanager.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M talk/session/media/channelmanager.cc View 1 2 3 4 1 chunk +12 lines, -10 lines 0 comments Download
A + webrtc/media/OWNERS View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A webrtc/media/base/videosinkinterface.h View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (17 generated)
nisse-webrtc
This defines a new rtc::VideoSinkInterface. It's the first time I try to add a new ...
4 years, 11 months ago (2016-01-19 13:21:59 UTC) #2
pbos-webrtc
https://codereview.webrtc.org/1594973006/diff/1/webrtc/media/base/videosinkinterface.h File webrtc/media/base/videosinkinterface.h (right): https://codereview.webrtc.org/1594973006/diff/1/webrtc/media/base/videosinkinterface.h#newcode16 webrtc/media/base/videosinkinterface.h:16: template <typename VideoFrameT> Do we need this to be ...
4 years, 11 months ago (2016-01-19 13:58:24 UTC) #3
nisse-webrtc
https://codereview.webrtc.org/1594973006/diff/1/webrtc/media/base/videosinkinterface.h File webrtc/media/base/videosinkinterface.h (right): https://codereview.webrtc.org/1594973006/diff/1/webrtc/media/base/videosinkinterface.h#newcode16 webrtc/media/base/videosinkinterface.h:16: template <typename VideoFrameT> On 2016/01/19 13:58:24, pbos-webrtc wrote: > ...
4 years, 11 months ago (2016-01-19 14:12:18 UTC) #4
pbos-webrtc
On 2016/01/19 14:12:18, nisse-webrtc wrote: > https://codereview.webrtc.org/1594973006/diff/1/webrtc/media/base/videosinkinterface.h > File webrtc/media/base/videosinkinterface.h (right): > > https://codereview.webrtc.org/1594973006/diff/1/webrtc/media/base/videosinkinterface.h#newcode16 > ...
4 years, 11 months ago (2016-01-19 14:14:55 UTC) #5
nisse-webrtc
On 2016/01/19 14:14:55, pbos-webrtc wrote: > On 2016/01/19 14:12:18, nisse-webrtc wrote: > > > https://codereview.webrtc.org/1594973006/diff/1/webrtc/media/base/videosinkinterface.h ...
4 years, 11 months ago (2016-01-19 14:35:27 UTC) #6
pbos-webrtc
On 2016/01/19 14:35:27, nisse-webrtc wrote: > On 2016/01/19 14:14:55, pbos-webrtc wrote: > > On 2016/01/19 ...
4 years, 11 months ago (2016-01-19 14:41:22 UTC) #7
nisse-webrtc
On 2016/01/19 14:41:22, pbos-webrtc wrote: > On 2016/01/19 14:35:27, nisse-webrtc wrote: > > On 2016/01/19 ...
4 years, 11 months ago (2016-01-20 13:23:04 UTC) #8
perkj_webrtc
lgtm
4 years, 11 months ago (2016-01-20 13:43:12 UTC) #9
perkj_webrtc
On 2016/01/20 13:43:12, perkj_webrtc wrote: > lgtm I should add, can you please add a ...
4 years, 11 months ago (2016-01-20 13:43:52 UTC) #10
pbos-webrtc
On 2016/01/20 13:23:04, nisse-webrtc wrote: > On 2016/01/19 14:41:22, pbos-webrtc wrote: > > On 2016/01/19 ...
4 years, 11 months ago (2016-01-20 13:45:32 UTC) #11
nisse-webrtc
What should we aim for to get this landable? I'm tempted to do as pbos ...
4 years, 11 months ago (2016-01-21 10:37:48 UTC) #13
nisse-webrtc
Updated patch set, switching CaptureRenderAdapter to use rtc::VideoSinkInterface, and all its callers up to VideoSource::AddSink ...
4 years, 11 months ago (2016-01-21 12:47:23 UTC) #14
perkj_webrtc
On 2016/01/21 12:47:23, nisse-webrtc wrote: > Updated patch set, switching CaptureRenderAdapter to use > rtc::VideoSinkInterface, ...
4 years, 11 months ago (2016-01-25 07:45:41 UTC) #15
nisse-webrtc
On 2016/01/25 07:45:41, perkj_webrtc wrote: > not lgtm - need to review again after latest ...
4 years, 11 months ago (2016-01-25 09:07:12 UTC) #16
pthatcher1
lgtm (The comments I left are all nits) https://codereview.webrtc.org/1594973006/diff/60001/talk/media/base/capturemanager.h File talk/media/base/capturemanager.h (right): https://codereview.webrtc.org/1594973006/diff/60001/talk/media/base/capturemanager.h#newcode85 talk/media/base/capturemanager.h:85: rtc::VideoSinkInterface<VideoFrame>* ...
4 years, 10 months ago (2016-01-27 01:11:04 UTC) #17
nisse-webrtc
https://codereview.webrtc.org/1594973006/diff/60001/talk/media/base/capturemanager.h File talk/media/base/capturemanager.h (right): https://codereview.webrtc.org/1594973006/diff/60001/talk/media/base/capturemanager.h#newcode85 talk/media/base/capturemanager.h:85: rtc::VideoSinkInterface<VideoFrame>* sink); On 2016/01/27 01:11:03, pthatcher1 wrote: > Can ...
4 years, 10 months ago (2016-01-27 09:08:51 UTC) #18
perkj_webrtc
lgtm https://codereview.webrtc.org/1594973006/diff/80001/talk/media/base/capturemanager.cc File talk/media/base/capturemanager.cc (right): https://codereview.webrtc.org/1594973006/diff/80001/talk/media/base/capturemanager.cc#newcode292 talk/media/base/capturemanager.cc:292: // TODO(nisse): Do we really need to tolerate ...
4 years, 10 months ago (2016-01-27 09:14:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1594973006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1594973006/80001
4 years, 10 months ago (2016-01-27 09:15:39 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios32_sim_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios32_sim_dbg/builds/4789) ios_arm64_dbg on tryserver.webrtc (JOB_FAILED, ...
4 years, 10 months ago (2016-01-27 09:17:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1594973006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1594973006/100001
4 years, 10 months ago (2016-01-27 13:17:11 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/3105)
4 years, 10 months ago (2016-01-27 13:20:07 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1594973006/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1594973006/120001
4 years, 10 months ago (2016-01-27 13:32:14 UTC) #32
nisse-webrtc
Committed patchset #7 (id:120001) manually as a862d4563fbc26e52bed442de784094ae1dfe5ee (presubmit successful).
4 years, 10 months ago (2016-01-27 13:41:08 UTC) #34
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/a862d4563fbc26e52bed442de784094ae1dfe5ee Cr-Commit-Position: refs/heads/master@{#11396}
4 years, 10 months ago (2016-01-27 13:41:13 UTC) #36
nisse-webrtc
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.webrtc.org/1646463002/ by nisse@webrtc.org. ...
4 years, 10 months ago (2016-01-27 14:12:29 UTC) #37
nisse-webrtc
Added a workaround for chrome. Works in local testing, after https://codereview.chromium.org/1642873002/ is applied. The reason ...
4 years, 10 months ago (2016-01-28 10:11:48 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1594973006/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1594973006/140001
4 years, 10 months ago (2016-01-28 11:43:04 UTC) #42
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-01-28 12:47:11 UTC) #44
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 12:47:22 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e73afbaf1734043bba2b47b6afa30837dbc4a7f1
Cr-Commit-Position: refs/heads/master@{#11414}

Powered by Google App Engine
This is Rietveld 408576698