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

Issue 2001533003: Refactoring: Hide VideoCodec.codecSpecific as "private" (Closed)

Created:
4 years, 7 months ago by hta-webrtc
Modified:
4 years, 1 month ago
Reviewers:
magjed_webrtc, tommi
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Refactoring: Hide VideoCodec.codecSpecific as "private" This refactoring allows runtime checks that functions that access codec specific information are using the correct union member. The API also allows replacing the union with another implementation without changes at calling sites. BUG=webrtc:6603 Committed: https://crrev.com/257dc39841c4d29e6a360f2dd10af336a45072a3 Cr-Commit-Position: refs/heads/master@{#14775}

Patch Set 1 #

Patch Set 2 : A few more files changed #

Patch Set 3 : Constructor to make Mac happy #

Patch Set 4 : Initialize codecSpecific with zeroes #

Patch Set 5 : More zeroes #

Total comments: 18

Patch Set 6 : Make Android happy #

Patch Set 7 : Addressing Tommi's comments #

Patch Set 8 : Use initializers instead of memset #

Total comments: 4

Patch Set 9 : Nits, and removing another memset #

Patch Set 10 : Public member to allow Chromium roll #

Patch Set 11 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -145 lines) Patch
M webrtc/common_types.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -3 lines 0 comments Download
M webrtc/common_types.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +49 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codec_database.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -12 lines 0 comments Download
M webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -20 lines 0 comments Download
M webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +7 lines, -9 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +17 lines, -26 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -9 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +19 lines, -23 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_sequence_coder.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +17 lines, -19 lines 0 comments Download
M webrtc/modules/video_coding/video_sender.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/video_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -8 lines 0 comments Download
M webrtc/video_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video_encoder.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 62 (31 generated)
hta-webrtc
I decided to try something a lot less ambitious for a first piece of refactoring ...
4 years, 7 months ago (2016-05-20 07:43:45 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001533003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001533003/1
4 years, 7 months ago (2016-05-20 07:52:36 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_gn_rel/builds/9526)
4 years, 7 months ago (2016-05-20 07:57:06 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001533003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001533003/20001
4 years, 7 months ago (2016-05-20 08:29:56 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_gn_rel/builds/9534)
4 years, 7 months ago (2016-05-20 08:38:58 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001533003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001533003/40001
4 years, 7 months ago (2016-05-20 08:52:46 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_ubsan_vptr on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan_vptr/builds/2690)
4 years, 7 months ago (2016-05-20 09:26:57 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001533003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001533003/60001
4 years, 7 months ago (2016-05-20 10:30:54 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_rel/builds/15295)
4 years, 7 months ago (2016-05-20 10:38:52 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001533003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001533003/80001
4 years, 7 months ago (2016-05-20 11:17:34 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_x86_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_x86_dbg/builds/4057) android_gn_rel on ...
4 years, 7 months ago (2016-05-20 11:20:43 UTC) #24
tommi
I think this change looks like a good thing in general, but I wouldn't spend ...
4 years, 7 months ago (2016-05-20 11:34:55 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001533003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001533003/120001
4 years, 7 months ago (2016-05-20 12:11:00 UTC) #27
hta-webrtc
Addressed all comments except use of memset. Queried about array initialization. https://codereview.webrtc.org/2001533003/diff/80001/webrtc/common_types.cc File webrtc/common_types.cc (right): ...
4 years, 7 months ago (2016-05-20 12:11:32 UTC) #28
pbos-webrtc
https://codereview.webrtc.org/2001533003/diff/80001/webrtc/common_types.h File webrtc/common_types.h (right): https://codereview.webrtc.org/2001533003/diff/80001/webrtc/common_types.h#newcode745 webrtc/common_types.h:745: // TODO(hta): Consider replacing the union with a pointer ...
4 years, 7 months ago (2016-05-20 12:26:24 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 7 months ago (2016-05-20 14:11:41 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001533003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001533003/120001
4 years, 7 months ago (2016-05-20 14:54:29 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 7 months ago (2016-05-20 16:54:53 UTC) #35
tommi
https://codereview.webrtc.org/2001533003/diff/80001/webrtc/common_types.cc File webrtc/common_types.cc (right): https://codereview.webrtc.org/2001533003/diff/80001/webrtc/common_types.cc#newcode53 webrtc/common_types.cc:53: plName(""), On 2016/05/20 12:11:31, hta-webrtc wrote: > BTW, plName ...
4 years, 7 months ago (2016-05-21 11:17:08 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001533003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001533003/140001
4 years, 7 months ago (2016-05-23 13:25:36 UTC) #38
hta-webrtc
Now running the CQ to see if breakage can be observed. I guess that if ...
4 years, 7 months ago (2016-05-23 13:30:16 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 7 months ago (2016-05-23 15:26:21 UTC) #41
tommi
lgtm with a couple of nits https://codereview.webrtc.org/2001533003/diff/140001/webrtc/common_types.cc File webrtc/common_types.cc (right): https://codereview.webrtc.org/2001533003/diff/140001/webrtc/common_types.cc#newcode49 webrtc/common_types.cc:49: memset(&arrOfCSRCs, 0, sizeof(arrOfCSRCs)); ...
4 years, 7 months ago (2016-05-23 17:05:09 UTC) #42
hta-webrtc
Nits addressed. https://codereview.webrtc.org/2001533003/diff/140001/webrtc/common_types.cc File webrtc/common_types.cc (right): https://codereview.webrtc.org/2001533003/diff/140001/webrtc/common_types.cc#newcode49 webrtc/common_types.cc:49: memset(&arrOfCSRCs, 0, sizeof(arrOfCSRCs)); On 2016/05/23 17:05:08, tommi-webrtc ...
4 years, 7 months ago (2016-05-23 17:19:33 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001533003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001533003/160001
4 years, 7 months ago (2016-05-23 17:20:12 UTC) #45
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 7 months ago (2016-05-23 19:20:57 UTC) #47
tommi
pbos - can we land this as is or is there something more that remains ...
4 years, 6 months ago (2016-05-27 13:18:50 UTC) #48
magjed_webrtc
lgtm. I think this is a good first step and at least we get runtime ...
4 years, 1 month ago (2016-10-25 15:24:04 UTC) #55
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/2001533003/200001
4 years, 1 month ago (2016-10-25 16:03:48 UTC) #58
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 1 month ago (2016-10-25 16:05:10 UTC) #60
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 16:14:27 UTC) #62
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/257dc39841c4d29e6a360f2dd10af336a45072a3
Cr-Commit-Position: refs/heads/master@{#14775}

Powered by Google App Engine
This is Rietveld 408576698