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

Issue 2347843002: Add proper lifetime of encoder-specific settings (Closed)

Created:
4 years, 3 months ago by kthelgason
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, video-team_agora.io, yujie_mao (webrtc), kwiberg-webrtc, stefan-webrtc, zhengzhonghou_agora.io, hlundin-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, qiang.lu, niklas.enbom, peah-webrtc, minyue-webrtc, the sun, perkj_webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

This is a resubmission of https://codereview.webrtc.org/2047513002/ Original description: Add proper lifetime of encoder-specific settings. Permits passing VideoEncoderConfig between threads and not worry about the lifetime of an underlying void pointer. Also adds type safety to unpacking of codec-specific settings. These settings are not yet propagating to VideoEncoder interfaces, but the aim is to get rid of webrtc::VideoCodec for VideoEncoder. BUG=webrtc:3424 R=perkj@webrtc.org, pbos@webrtc.org TBR=mflodman@webrtc.org Committed: https://crrev.com/29a44e351e1e35c29dd5ff650f62cbc4d10b3b1b Cr-Commit-Position: refs/heads/master@{#14396}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix tests #

Total comments: 4

Patch Set 3 : Change TODO owner and rebase #

Total comments: 2

Patch Set 4 : Change TODO owner #

Total comments: 2

Patch Set 5 : privatize ref counted dtor #

Total comments: 1

Patch Set 6 : nitpicks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -75 lines) Patch
M webrtc/config.h View 1 2 3 4 5 3 chunks +51 lines, -2 lines 0 comments Download
M webrtc/config.cc View 3 chunks +58 lines, -1 line 0 comments Download
M webrtc/media/engine/fakewebrtccall.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 2 3 chunks +2 lines, -8 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 2 chunks +23 lines, -19 lines 0 comments Download
M webrtc/modules/audio_coding/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/video/video_quality_test.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 1 chunk +13 lines, -11 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 7 chunks +29 lines, -2 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 chunks +16 lines, -26 lines 0 comments Download

Messages

Total messages: 36 (18 generated)
kthelgason
4 years, 3 months ago (2016-09-16 12:07:09 UTC) #1
pbos-webrtc
lgtm, but I think someone else should look/approve as well since I wrote most of ...
4 years, 3 months ago (2016-09-16 18:52:35 UTC) #2
perkj_webrtc
lgtm https://codereview.webrtc.org/2347843002/diff/20001/webrtc/config.h File webrtc/config.h (right): https://codereview.webrtc.org/2347843002/diff/20001/webrtc/config.h#newcode132 webrtc/config.h:132: // TODO(pbos): Consider removing the need for copying ...
4 years, 3 months ago (2016-09-19 08:38:31 UTC) #3
kthelgason
https://codereview.webrtc.org/2347843002/diff/20001/webrtc/config.h File webrtc/config.h (right): https://codereview.webrtc.org/2347843002/diff/20001/webrtc/config.h#newcode132 webrtc/config.h:132: // TODO(pbos): Consider removing the need for copying VideoEncoderConfig ...
4 years, 3 months ago (2016-09-19 09:15:41 UTC) #4
kthelgason
Updated. Perhaps you'd like to take one last look before handing this off to CQ ...
4 years, 3 months ago (2016-09-20 06:29:14 UTC) #9
perkj_webrtc
still lgtm but ... https://codereview.webrtc.org/2347843002/diff/40001/webrtc/config.h File webrtc/config.h (right): https://codereview.webrtc.org/2347843002/diff/40001/webrtc/config.h#newcode123 webrtc/config.h:123: // TODO(kthelgason): Apart from a ...
4 years, 3 months ago (2016-09-20 08:39:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2347843002/60001
4 years, 3 months ago (2016-09-20 13:44:12 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/8536)
4 years, 3 months ago (2016-09-20 14:09:23 UTC) #15
kthelgason
Adding tommi@ as a reviewer as he owns webrtc/config.{cc,h}
4 years, 3 months ago (2016-09-20 19:32:47 UTC) #17
kthelgason
4 years, 3 months ago (2016-09-21 10:41:56 UTC) #19
tommi
https://codereview.webrtc.org/2347843002/diff/60001/webrtc/config.h File webrtc/config.h (right): https://codereview.webrtc.org/2347843002/diff/60001/webrtc/config.h#newcode136 webrtc/config.h:136: virtual ~EncoderSpecificSettings() {} for reference counted classes it's preferred ...
4 years, 3 months ago (2016-09-21 13:20:58 UTC) #21
kthelgason
https://codereview.chromium.org/2347843002/diff/60001/webrtc/config.h File webrtc/config.h (right): https://codereview.chromium.org/2347843002/diff/60001/webrtc/config.h#newcode136 webrtc/config.h:136: virtual ~EncoderSpecificSettings() {} On 2016/09/21 13:20:57, tommi (webrtc) wrote: ...
4 years, 3 months ago (2016-09-21 16:53:09 UTC) #22
tommi (sloooow) - chröme
lgtm % one nit https://codereview.chromium.org/2347843002/diff/80001/webrtc/config.h File webrtc/config.h (right): https://codereview.chromium.org/2347843002/diff/80001/webrtc/config.h#newcode144 webrtc/config.h:144: friend struct VideoEncoderConfig; move below ...
4 years, 3 months ago (2016-09-21 18:36:27 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2347843002/100001
4 years, 2 months ago (2016-09-27 08:57:08 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/8711)
4 years, 2 months ago (2016-09-27 09:28:04 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2347843002/100001
4 years, 2 months ago (2016-09-27 10:43:09 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-09-27 10:52:06 UTC) #34
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 10:52:09 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/29a44e351e1e35c29dd5ff650f62cbc4d10b3b1b
Cr-Commit-Position: refs/heads/master@{#14396}

Powered by Google App Engine
This is Rietveld 408576698