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

Issue 1603423002: Simplify CaptureRenderAdapter. (Closed)

Created:
4 years, 11 months ago by nisse-webrtc
Modified:
4 years, 11 months ago
CC:
webrtc-reviews_webrtc.org
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Delete CaptureRenderAdapter::VideoRenderInfo struct, it is unused since the recent deletion of SetSize. Delete methods MaybeSetRenderingSize and IsRendererRegistered, the latter replaced by std::find. Delete return values from AddRenderer and RemoveRenderer. BUG=webrtc:5426 Committed: https://crrev.com/0b98cf72c6ca36edb96b8b8d1ab6dfd231032d5c Cr-Commit-Position: refs/heads/master@{#11332}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Simplify OnVideoFrame iteration #

Patch Set 3 : Address Tommi's comments. #

Total comments: 3

Patch Set 4 : Deleted CaptureRenderAdapter::IsRendererRegistered, use std::find instead #

Patch Set 5 : Delete test of RemoveVideoRenderer return value #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -68 lines) Patch
M talk/media/base/capturemanager.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M talk/media/base/capturemanager_unittest.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M talk/media/base/capturerenderadapter.h View 1 2 3 2 chunks +3 lines, -17 lines 0 comments Download
M talk/media/base/capturerenderadapter.cc View 1 2 3 2 chunks +19 lines, -47 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
nisse-webrtc
The VideoRenderInfo struct and its width and height fields became unused with the recent deletion ...
4 years, 11 months ago (2016-01-20 13:09:59 UTC) #2
tommi
https://codereview.webrtc.org/1603423002/diff/1/talk/media/base/capturerenderadapter.cc File talk/media/base/capturerenderadapter.cc (right): https://codereview.webrtc.org/1603423002/diff/1/talk/media/base/capturerenderadapter.cc#newcode65 talk/media/base/capturerenderadapter.cc:65: if (!video_renderer) { can you add an RTC_DCHECK for ...
4 years, 11 months ago (2016-01-20 13:21:24 UTC) #3
nisse-webrtc
https://codereview.webrtc.org/1603423002/diff/1/talk/media/base/capturerenderadapter.cc File talk/media/base/capturerenderadapter.cc (right): https://codereview.webrtc.org/1603423002/diff/1/talk/media/base/capturerenderadapter.cc#newcode82 talk/media/base/capturerenderadapter.cc:82: // VideoTrackRenderers), so we can use erase directly? On ...
4 years, 11 months ago (2016-01-20 13:45:45 UTC) #4
nisse-webrtc
On 2016/01/20 13:45:45, nisse-webrtc wrote: > called by VideoSource::RemoveSink, where it is finally ignored. You ...
4 years, 11 months ago (2016-01-20 14:39:23 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1603423002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1603423002/20001
4 years, 11 months ago (2016-01-20 15:10:03 UTC) #7
tommi
https://codereview.webrtc.org/1603423002/diff/1/talk/media/base/capturerenderadapter.cc File talk/media/base/capturerenderadapter.cc (right): https://codereview.webrtc.org/1603423002/diff/1/talk/media/base/capturerenderadapter.cc#newcode82 talk/media/base/capturerenderadapter.cc:82: // VideoTrackRenderers), so we can use erase directly? On ...
4 years, 11 months ago (2016-01-20 15:38:15 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-20 17:27:58 UTC) #10
nisse-webrtc
https://codereview.webrtc.org/1603423002/diff/1/talk/media/base/capturerenderadapter.cc File talk/media/base/capturerenderadapter.cc (right): https://codereview.webrtc.org/1603423002/diff/1/talk/media/base/capturerenderadapter.cc#newcode65 talk/media/base/capturerenderadapter.cc:65: if (!video_renderer) { On 2016/01/20 13:21:24, tommi-webrtc wrote: > ...
4 years, 11 months ago (2016-01-21 08:08:51 UTC) #11
tommi
thanks. lgtm. https://codereview.webrtc.org/1603423002/diff/40001/talk/media/base/capturerenderadapter.cc File talk/media/base/capturerenderadapter.cc (right): https://codereview.webrtc.org/1603423002/diff/40001/talk/media/base/capturerenderadapter.cc#newcode69 talk/media/base/capturerenderadapter.cc:69: // added once. TODO(nisse): Is this really ...
4 years, 11 months ago (2016-01-21 08:45:35 UTC) #12
nisse-webrtc
Still looks good? I'm not familiar with stl. I'm starting a cq dry run now, ...
4 years, 11 months ago (2016-01-21 09:11:44 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1603423002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1603423002/60001
4 years, 11 months ago (2016-01-21 09:11:56 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_asan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_asan/builds/11987)
4 years, 11 months ago (2016-01-21 09:20:00 UTC) #17
tommi (sloooow) - chröme
Thanks! Still lgtm. I guess you'll have to remove that test that seems to be ...
4 years, 11 months ago (2016-01-21 09:32:02 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1603423002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1603423002/80001
4 years, 11 months ago (2016-01-21 09:59:02 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-21 11:04:34 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 11:04:39 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0b98cf72c6ca36edb96b8b8d1ab6dfd231032d5c
Cr-Commit-Position: refs/heads/master@{#11332}

Powered by Google App Engine
This is Rietveld 408576698