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

Issue 1684423002: Make VideoTrack and VideoTrackRenderers implement rtc::VideoSourceInterface. (Closed)

Created:
4 years, 10 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

Make VideoTrack and VideoTrackRenderers implement rtc::VideoSourceInterface. This patch tries to only change the interface to VideoTrack, with minimal changes to the implementation. Some points worth noting: VideoTrackRenderers should ultimately be deleted, but it is kept for now since we need an object implementing webrtc::VideoRenderer, and that shouldn't be VideoTrack. BUG=webrtc:5426 TBR=glaznev@webrtc.org // please look at examples Committed: https://crrev.com/db25d2e8c57b14b14111ee6ab4a5cb6372142155 Cr-Commit-Position: refs/heads/master@{#11775}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressed Per's comments. #

Patch Set 3 : Rebase on master, copy VideoSourceInterface. #

Total comments: 17

Patch Set 4 : Rebase. #

Patch Set 5 : Additional test. Addressed nits. #

Total comments: 2

Patch Set 6 : Fix comment on namespace-confusion. #

Total comments: 10

Patch Set 7 : Delete unused last_frame method and corresponding member. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -52 lines) Patch
M webrtc/api/mediastreaminterface.h View 1 2 3 4 5 2 chunks +24 lines, -5 lines 0 comments Download
M webrtc/api/mediastreamtrackproxy.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/api/test/fakevideotrackrenderer.h View 1 2 3 4 5 6 2 chunks +31 lines, -10 lines 1 comment Download
M webrtc/api/videotrack.h View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
M webrtc/api/videotrack.cc View 1 2 chunks +9 lines, -5 lines 0 comments Download
M webrtc/api/videotrack_unittest.cc View 1 2 3 4 2 chunks +42 lines, -0 lines 0 comments Download
M webrtc/api/videotrackrenderers.h View 1 2 chunks +8 lines, -6 lines 0 comments Download
M webrtc/api/videotrackrenderers.cc View 1 2 3 4 3 chunks +16 lines, -13 lines 0 comments Download
M webrtc/examples/peerconnection/client/linux/main_wnd.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/examples/peerconnection/client/linux/main_wnd.cc View 1 3 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
nisse-webrtc
Next, I'll try to #if out VideoTrackInterface::AddRenderer, to find out how much it takes to ...
4 years, 10 months ago (2016-02-11 14:57:39 UTC) #2
perkj_webrtc
https://codereview.webrtc.org/1684423002/diff/1/webrtc/api/mediastreaminterface.h File webrtc/api/mediastreaminterface.h (right): https://codereview.webrtc.org/1684423002/diff/1/webrtc/api/mediastreaminterface.h#newcode131 webrtc/api/mediastreaminterface.h:131: virtual void AddRenderer(VideoRendererInterface* renderer) { Comment that these are ...
4 years, 10 months ago (2016-02-11 15:30:44 UTC) #3
pthatcher1
I didn't see anything that Per didn't, so it's good as long as you address ...
4 years, 10 months ago (2016-02-11 20:29:09 UTC) #4
nisse-webrtc
I've addressed Per's comments. Also rebased it on master, now that it no longer uses ...
4 years, 10 months ago (2016-02-12 08:36:03 UTC) #6
perkj_webrtc
https://codereview.webrtc.org/1684423002/diff/40001/webrtc/api/mediastreaminterface.h File webrtc/api/mediastreaminterface.h (right): https://codereview.webrtc.org/1684423002/diff/40001/webrtc/api/mediastreaminterface.h#newcode131 webrtc/api/mediastreaminterface.h:131: // webrtc::VideoSourceInterface? and why should it not resolve to ...
4 years, 10 months ago (2016-02-12 14:40:14 UTC) #7
nisse-webrtc
https://codereview.webrtc.org/1684423002/diff/40001/webrtc/api/mediastreaminterface.h File webrtc/api/mediastreaminterface.h (right): https://codereview.webrtc.org/1684423002/diff/40001/webrtc/api/mediastreaminterface.h#newcode131 webrtc/api/mediastreaminterface.h:131: // webrtc::VideoSourceInterface? On 2016/02/12 14:40:14, perkj_webrtc wrote: > and ...
4 years, 10 months ago (2016-02-15 08:54:49 UTC) #8
perkj_webrtc
https://codereview.webrtc.org/1684423002/diff/40001/webrtc/api/mediastreaminterface.h File webrtc/api/mediastreaminterface.h (right): https://codereview.webrtc.org/1684423002/diff/40001/webrtc/api/mediastreaminterface.h#newcode146 webrtc/api/mediastreaminterface.h:146: // mock implementations. On 2016/02/15 08:54:48, nisse-webrtc wrote: > ...
4 years, 10 months ago (2016-02-15 12:36:27 UTC) #9
nisse-webrtc
https://codereview.webrtc.org/1684423002/diff/40001/webrtc/api/mediastreaminterface.h File webrtc/api/mediastreaminterface.h (right): https://codereview.webrtc.org/1684423002/diff/40001/webrtc/api/mediastreaminterface.h#newcode146 webrtc/api/mediastreaminterface.h:146: // mock implementations. On 2016/02/15 12:36:27, perkj_webrtc wrote: > ...
4 years, 10 months ago (2016-02-15 14:51:53 UTC) #10
perkj_webrtc
lgtm if the comment // TODO(nisse): is resolved in mediastreaminterface.h https://codereview.webrtc.org/1684423002/diff/80001/webrtc/api/mediastreaminterface.h File webrtc/api/mediastreaminterface.h (right): https://codereview.webrtc.org/1684423002/diff/80001/webrtc/api/mediastreaminterface.h#newcode129 ...
4 years, 10 months ago (2016-02-21 18:16:47 UTC) #11
nisse-webrtc
https://codereview.webrtc.org/1684423002/diff/80001/webrtc/api/mediastreaminterface.h File webrtc/api/mediastreaminterface.h (right): https://codereview.webrtc.org/1684423002/diff/80001/webrtc/api/mediastreaminterface.h#newcode129 webrtc/api/mediastreaminterface.h:129: // TODO(nisse): I don't understand why this is needed, ...
4 years, 10 months ago (2016-02-23 13:22:22 UTC) #12
pthatcher1
https://codereview.webrtc.org/1684423002/diff/100001/webrtc/api/test/fakevideotrackrenderer.h File webrtc/api/test/fakevideotrackrenderer.h (right): https://codereview.webrtc.org/1684423002/diff/100001/webrtc/api/test/fakevideotrackrenderer.h#newcode29 webrtc/api/test/fakevideotrackrenderer.h:29: last_frame_ = const_cast<cricket::VideoFrame*>(&video_frame); Why do we need a const_cast? ...
4 years, 10 months ago (2016-02-25 07:07:30 UTC) #13
nisse-webrtc
https://codereview.webrtc.org/1684423002/diff/100001/webrtc/api/test/fakevideotrackrenderer.h File webrtc/api/test/fakevideotrackrenderer.h (right): https://codereview.webrtc.org/1684423002/diff/100001/webrtc/api/test/fakevideotrackrenderer.h#newcode29 webrtc/api/test/fakevideotrackrenderer.h:29: last_frame_ = const_cast<cricket::VideoFrame*>(&video_frame); On 2016/02/25 07:07:30, pthatcher1 wrote: > ...
4 years, 10 months ago (2016-02-25 11:42:28 UTC) #14
pthatcher1
lgtm https://codereview.webrtc.org/1684423002/diff/100001/webrtc/api/videotrack.h File webrtc/api/videotrack.h (right): https://codereview.webrtc.org/1684423002/diff/100001/webrtc/api/videotrack.h#newcode26 webrtc/api/videotrack.h:26: VideoSourceInterface* source); It's not really part of the ...
4 years, 10 months ago (2016-02-25 20:28:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1684423002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1684423002/120001
4 years, 10 months ago (2016-02-26 07:22:59 UTC) #19
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/3681)
4 years, 10 months ago (2016-02-26 07:32:39 UTC) #21
nisse-webrtc
Please have a look at the small changes to webrtc/examples. TBR=glaznev
4 years, 10 months ago (2016-02-26 08:59:50 UTC) #22
nisse-webrtc
Please have a look at the small changes to webrtc/examples. TBR=glaznev@webrtc.org (Second attempt, sorry, I'm ...
4 years, 10 months ago (2016-02-26 09:02:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1684423002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1684423002/120001
4 years, 10 months ago (2016-02-26 09:02:36 UTC) #25
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/3685)
4 years, 10 months ago (2016-02-26 09:07:58 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1684423002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1684423002/120001
4 years, 10 months ago (2016-02-26 09:22:37 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-26 09:25:04 UTC) #32
commit-bot: I haz the power
4 years, 10 months ago (2016-02-26 09:25:11 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/db25d2e8c57b14b14111ee6ab4a5cb6372142155
Cr-Commit-Position: refs/heads/master@{#11775}

Powered by Google App Engine
This is Rietveld 408576698