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

Issue 1864993002: Remove the deprecated EncodeInternal interface from AudioEncoder (Closed)

Created:
4 years, 8 months ago by ossu
Modified:
4 years, 8 months ago
Reviewers:
the sun, kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove the deprecated EncodeInternal interface from AudioEncoder Also hid MaxEncodedBytes by making it private. It will get removed as soon as subclasses have had time to remove their overrides. BUG=webrtc:5591 Committed: https://crrev.com/5222d315dbea8f3563c100cc9f2451907f70b05f Cr-Commit-Position: refs/heads/master@{#12329}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Put fallback-MaxEncodedBytes back in for backwards compatibility. Removed unrelated cleanups. #

Total comments: 1

Patch Set 3 : Fixed two typos. #

Patch Set 4 : AudioEncoderOpus: Renamed MaxEncodedBytes to ApproximateEncodedBytes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -278 lines) Patch
M webrtc/modules/audio_coding/acm2/audio_coding_module_impl.cc View 2 chunks +0 lines, -8 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_encoder.h View 1 2 3 chunks +11 lines, -40 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_encoder.cc View 1 2 chunks +5 lines, -49 lines 0 comments Download
D webrtc/modules/audio_coding/codecs/audio_encoder_unittest.cc View 1 chunk +0 lines, -64 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.cc View 2 chunks +1 line, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h View 2 chunks +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h View 1 chunk +0 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h View 1 3 chunks +2 lines, -36 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc View 1 2 3 3 chunks +11 lines, -11 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h View 2 chunks +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 31 (12 generated)
ossu
This change was targeted for some time around Chrome M51. Might as well leave it ...
4 years, 8 months ago (2016-04-06 16:04:06 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h File webrtc/modules/audio_coding/codecs/audio_encoder.h (left): https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h#oldcode61 webrtc/modules/audio_coding/codecs/audio_encoder.h:61: virtual size_t MaxEncodedBytes() const = 0; If you go ...
4 years, 8 months ago (2016-04-07 08:23:16 UTC) #4
ossu
https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h File webrtc/modules/audio_coding/codecs/audio_encoder.h (left): https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h#oldcode61 webrtc/modules/audio_coding/codecs/audio_encoder.h:61: virtual size_t MaxEncodedBytes() const = 0; On 2016/04/07 08:23:16, ...
4 years, 8 months ago (2016-04-07 08:52:54 UTC) #5
kwiberg-webrtc
https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h File webrtc/modules/audio_coding/codecs/audio_encoder.h (left): https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h#oldcode61 webrtc/modules/audio_coding/codecs/audio_encoder.h:61: virtual size_t MaxEncodedBytes() const = 0; On 2016/04/07 08:52:53, ...
4 years, 8 months ago (2016-04-07 09:53:26 UTC) #6
ossu
https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h File webrtc/modules/audio_coding/codecs/audio_encoder.h (left): https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h#oldcode61 webrtc/modules/audio_coding/codecs/audio_encoder.h:61: virtual size_t MaxEncodedBytes() const = 0; On 2016/04/07 09:53:26, ...
4 years, 8 months ago (2016-04-07 10:42:39 UTC) #7
kwiberg-webrtc
https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h File webrtc/modules/audio_coding/codecs/audio_encoder.h (left): https://codereview.webrtc.org/1864993002/diff/1/webrtc/modules/audio_coding/codecs/audio_encoder.h#oldcode61 webrtc/modules/audio_coding/codecs/audio_encoder.h:61: virtual size_t MaxEncodedBytes() const = 0; On 2016/04/07 10:42:39, ...
4 years, 8 months ago (2016-04-07 12:31:24 UTC) #8
the sun
lgtm
4 years, 8 months ago (2016-04-08 11:06:26 UTC) #9
ossu
Put MaxEncodedBytes back in as a private method. Removed unrelated cleanups.
4 years, 8 months ago (2016-04-08 12:14:07 UTC) #10
kwiberg-webrtc
lgtm But the commit message is no longer accurate. (Also, please consider using the imperative ...
4 years, 8 months ago (2016-04-09 06:53:18 UTC) #11
ossu
Well, it's not a commit message yet. :) Anyhow, it's been updated. Does Rietveld not ...
4 years, 8 months ago (2016-04-11 08:25:41 UTC) #13
kwiberg-webrtc
On 2016/04/11 08:25:41, ossu wrote: > Well, it's not a commit message yet. :) > ...
4 years, 8 months ago (2016-04-11 08:47:57 UTC) #14
kwiberg-webrtc
On 2016/04/11 08:25:41, ossu wrote: > Anyhow, it's been updated. Not completely. "Removed" -> "Remove" ...
4 years, 8 months ago (2016-04-11 08:50:26 UTC) #15
ossu
Aach... I'm not sure I prefer that form. It makes it sound like a request ...
4 years, 8 months ago (2016-04-11 10:32:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864993002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864993002/40001
4 years, 8 months ago (2016-04-11 12:07:44 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_asan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_asan/builds/13738) mac_gn_rel on tryserver.webrtc (JOB_FAILED, ...
4 years, 8 months ago (2016-04-11 12:10:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864993002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864993002/60001
4 years, 8 months ago (2016-04-12 10:29:17 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-12 10:31:00 UTC) #28
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/5222d315dbea8f3563c100cc9f2451907f70b05f Cr-Commit-Position: refs/heads/master@{#12329}
4 years, 8 months ago (2016-04-12 10:31:09 UTC) #30
ossu
4 years, 8 months ago (2016-04-12 10:57:54 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.webrtc.org/1883543002/ by ossu@webrtc.org.

The reason for reverting is: Broke import. Implementations of the old interface
still exists somewhere..

Powered by Google App Engine
This is Rietveld 408576698