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

Issue 1993783002: Moved CreateBuiltinDecoderFactory out to VoEBaseImpl. (Closed)

Created:
4 years, 7 months ago by ossu
Modified:
4 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, peah-webrtc, Andrew MacDonald, henrika_webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@audio-decoder-factory-injections-2
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Moved CreateBuiltinDecoderFactory out to VoEBaseImpl. VoEBase is plumbed to optionally take an AudioDecoderFactory, or create a builtin factory if none is provided. Retained the CreateChannel interfaces in Channel and ChannelManager and added variants for injecting an AudioDecoderFactory. The "old-style" variants call CreateBuiltinAudioDecoderFactory to get a factory to use. (Just realized this means each channel uses a separate factory with the old-style calls. Probably ok.) BUG=webrtc:5805 Committed: https://crrev.com/5f7cfa50e515634f84198f5f4a713f78e8e2019b Cr-Commit-Position: refs/heads/master@{#12961}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Removed a spurious space and an unnecessary include. #

Patch Set 3 : Rebass! How low can you go? #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -20 lines) Patch
M webrtc/media/engine/fakewebrtcvoiceengine.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M webrtc/test/mock_voice_engine.h View 1 chunk +5 lines, -3 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 chunks +16 lines, -3 lines 0 comments Download
M webrtc/voice_engine/channel_manager.h View 4 chunks +10 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel_manager.cc View 2 chunks +18 lines, -4 lines 0 comments Download
M webrtc/voice_engine/include/voe_base.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_base_impl.h View 2 chunks +4 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_base_impl.cc View 5 chunks +13 lines, -4 lines 2 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 34 (15 generated)
ossu
https://codereview.webrtc.org/1993783002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (left): https://codereview.webrtc.org/1993783002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc#oldcode25 webrtc/modules/audio_coding/neteq/neteq_impl.cc:25: #include "webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h" This one should already have been removed ...
4 years, 7 months ago (2016-05-18 16:12:27 UTC) #3
kwiberg-webrtc
lgtm https://codereview.webrtc.org/1993783002/diff/1/webrtc/media/engine/fakewebrtcvoiceengine.h File webrtc/media/engine/fakewebrtcvoiceengine.h (right): https://codereview.webrtc.org/1993783002/diff/1/webrtc/media/engine/fakewebrtcvoiceengine.h#newcode233 webrtc/media/engine/fakewebrtcvoiceengine.h:233: (webrtc::AudioDeviceModule * adm, Spurios space. https://codereview.webrtc.org/1993783002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc ...
4 years, 7 months ago (2016-05-25 09:19:17 UTC) #5
ossu
https://codereview.webrtc.org/1993783002/diff/1/webrtc/media/engine/fakewebrtcvoiceengine.h File webrtc/media/engine/fakewebrtcvoiceengine.h (right): https://codereview.webrtc.org/1993783002/diff/1/webrtc/media/engine/fakewebrtcvoiceengine.h#newcode233 webrtc/media/engine/fakewebrtcvoiceengine.h:233: (webrtc::AudioDeviceModule * adm, On 2016/05/25 09:19:16, kwiberg-webrtc wrote: > ...
4 years, 7 months ago (2016-05-26 12:09:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993783002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993783002/40001
4 years, 7 months ago (2016-05-26 15:01:58 UTC) #9
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/5885)
4 years, 7 months ago (2016-05-26 15:06:11 UTC) #11
ossu
Adding Tina for owner approval.
4 years, 7 months ago (2016-05-26 15:17:20 UTC) #13
tlegrand
On 2016/05/26 15:17:20, ossu wrote: > Adding Tina for owner approval. lgtm
4 years, 6 months ago (2016-05-27 14:01:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993783002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993783002/40001
4 years, 6 months ago (2016-05-27 14:11:33 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_clang_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_clang_dbg/builds/3669)
4 years, 6 months ago (2016-05-27 14:25:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993783002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993783002/40001
4 years, 6 months ago (2016-05-30 12:40:34 UTC) #20
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/5941)
4 years, 6 months ago (2016-05-30 12:47:05 UTC) #22
ossu
On 2016/05/27 14:01:11, tlegrand wrote: > On 2016/05/26 15:17:20, ossu wrote: > > Adding Tina ...
4 years, 6 months ago (2016-05-30 13:06:15 UTC) #23
tlegrand-webrtc
On 2016/05/30 13:06:15, ossu wrote: > On 2016/05/27 14:01:11, tlegrand wrote: > > On 2016/05/26 ...
4 years, 6 months ago (2016-05-30 13:08:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993783002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993783002/40001
4 years, 6 months ago (2016-05-30 13:08:57 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-05-30 15:11:33 UTC) #28
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/5f7cfa50e515634f84198f5f4a713f78e8e2019b Cr-Commit-Position: refs/heads/master@{#12961}
4 years, 6 months ago (2016-05-30 15:11:41 UTC) #30
the sun
https://codereview.webrtc.org/1993783002/diff/40001/webrtc/voice_engine/voe_base_impl.cc File webrtc/voice_engine/voe_base_impl.cc (right): https://codereview.webrtc.org/1993783002/diff/40001/webrtc/voice_engine/voe_base_impl.cc#newcode384 webrtc/voice_engine/voe_base_impl.cc:384: decoder_factory_ = CreateBuiltinAudioDecoderFactory(); I think since the VoEBase::Init() interface ...
4 years, 6 months ago (2016-05-30 18:46:48 UTC) #32
ossu
https://codereview.webrtc.org/1993783002/diff/40001/webrtc/voice_engine/voe_base_impl.cc File webrtc/voice_engine/voe_base_impl.cc (right): https://codereview.webrtc.org/1993783002/diff/40001/webrtc/voice_engine/voe_base_impl.cc#newcode384 webrtc/voice_engine/voe_base_impl.cc:384: decoder_factory_ = CreateBuiltinAudioDecoderFactory(); On 2016/05/30 18:46:48, the sun wrote: ...
4 years, 6 months ago (2016-05-31 08:54:18 UTC) #33
the sun
4 years, 6 months ago (2016-05-31 09:32:29 UTC) #34
Message was sent while issue was closed.
On 2016/05/31 08:54:18, ossu wrote:
>
https://codereview.webrtc.org/1993783002/diff/40001/webrtc/voice_engine/voe_b...
> File webrtc/voice_engine/voe_base_impl.cc (right):
> 
>
https://codereview.webrtc.org/1993783002/diff/40001/webrtc/voice_engine/voe_b...
> webrtc/voice_engine/voe_base_impl.cc:384: decoder_factory_ =
> CreateBuiltinAudioDecoderFactory();
> On 2016/05/30 18:46:48, the sun wrote:
> > I think since the VoEBase::Init() interface has been changed, this is the
> *only*
> > place we should have a dependency on CreateBuiltinAudioDecoderFactory(). It
> can
> > be propagated down from here and we shouldn't need it in Channel or
> > ChannelManager. Right?
> 
> Now, the last time we spoke about this you wanted CreatChannel to retain its
old
> interface as well. The only way to do that is to create a builtin factory
there,
> if the caller hasn't supplied one. Or am I misunderstanding your question?

I was talking about VoEBase::CreateChannel(), sorry about the confusion. It
should be possible to leave that as is now that we take the decoder factory in
VoEBase::Init(), or am I wrong?

Powered by Google App Engine
This is Rietveld 408576698