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

Issue 1148253006: Chromecast: Use std::vector to pass video config in CMA (Closed)

Created:
5 years, 6 months ago by erickung1
Modified:
5 years, 6 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, gunsch+watch_chromium.org, lcwu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Chromecast: use multiple video configs in CMA - The CL also remove space in front of ::media namespace. BUG= internal b/18865809 Committed: https://crrev.com/f4e0b8865f3f0969f50587c31508c99557127f28 Cr-Commit-Position: refs/heads/master@{#333225}

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Remove unrelated comment #

Patch Set 5 : Add more DCHECK #

Total comments: 2

Patch Set 6 : Rebase to TOT #

Total comments: 1

Patch Set 7 : Return failure if incoming vector of DecoderConfig is empty or not. #

Patch Set 8 : Remove DCHECK when config is updated. Will create another CL for the change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -43 lines) Patch
M chromecast/browser/media/cma_message_filter_host.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chromecast/browser/media/cma_message_filter_host.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chromecast/browser/media/media_pipeline_host.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/media/media_pipeline_host.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/common/media/cma_messages.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chromecast/media/cma/base/buffering_frame_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/cma/filters/cma_renderer.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chromecast/media/cma/filters/demuxer_stream_adapter.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/cma/filters/demuxer_stream_adapter_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chromecast/media/cma/pipeline/audio_pipeline_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/media/cma/pipeline/audio_video_pipeline_impl_unittest.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline.h View 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chromecast/media/cma/pipeline/video_pipeline_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/cma/pipeline/video_pipeline_impl.cc View 1 2 3 4 5 6 7 2 chunks +19 lines, -5 lines 0 comments Download
M chromecast/renderer/media/media_pipeline_proxy.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chromecast/renderer/media/media_pipeline_proxy.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/renderer/media/video_pipeline_proxy.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chromecast/renderer/media/video_pipeline_proxy.cc View 5 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 45 (17 generated)
erickung1
5 years, 6 months ago (2015-06-04 10:05:03 UTC) #2
gunsch
pre-review comments: 1) do you have a BUG= for this? 2) "Use std::vector" in the ...
5 years, 6 months ago (2015-06-04 16:55:22 UTC) #3
gunsch
https://codereview.chromium.org/1148253006/diff/20001/chromecast/media/cma/filters/cma_renderer.cc File chromecast/media/cma/filters/cma_renderer.cc (right): https://codereview.chromium.org/1148253006/diff/20001/chromecast/media/cma/filters/cma_renderer.cc#newcode324 chromecast/media/cma/filters/cma_renderer.cc:324: std::vector<::media::VideoDecoderConfig> configs; Alright, this looks like the start. Is ...
5 years, 6 months ago (2015-06-04 17:03:43 UTC) #4
erickung1
https://codereview.chromium.org/1148253006/diff/20001/chromecast/media/cma/filters/cma_renderer.cc File chromecast/media/cma/filters/cma_renderer.cc (right): https://codereview.chromium.org/1148253006/diff/20001/chromecast/media/cma/filters/cma_renderer.cc#newcode324 chromecast/media/cma/filters/cma_renderer.cc:324: std::vector<::media::VideoDecoderConfig> configs; On 2015/06/04 17:03:42, gunsch wrote: > Alright, ...
5 years, 6 months ago (2015-06-04 20:29:20 UTC) #5
gunsch
https://codereview.chromium.org/1148253006/diff/20001/chromecast/media/cma/pipeline/audio_pipeline_impl.cc File chromecast/media/cma/pipeline/audio_pipeline_impl.cc (right): https://codereview.chromium.org/1148253006/diff/20001/chromecast/media/cma/pipeline/audio_pipeline_impl.cc#newcode130 chromecast/media/cma/pipeline/audio_pipeline_impl.cc:130: DCHECK(!video_config.IsValidConfig()); On 2015/06/04 20:29:20, erickung1 wrote: > On 2015/06/04 ...
5 years, 6 months ago (2015-06-05 00:17:13 UTC) #6
erickung1
https://codereview.chromium.org/1148253006/diff/20001/chromecast/media/cma/pipeline/audio_pipeline_impl.cc File chromecast/media/cma/pipeline/audio_pipeline_impl.cc (right): https://codereview.chromium.org/1148253006/diff/20001/chromecast/media/cma/pipeline/audio_pipeline_impl.cc#newcode130 chromecast/media/cma/pipeline/audio_pipeline_impl.cc:130: DCHECK(!video_config.IsValidConfig()); On 2015/06/05 00:17:12, gunsch wrote: > On 2015/06/04 ...
5 years, 6 months ago (2015-06-05 01:04:19 UTC) #7
gunsch
lgtm % adding DCHECKs https://codereview.chromium.org/1148253006/diff/40001/chromecast/media/cma/pipeline/video_pipeline_impl.cc File chromecast/media/cma/pipeline/video_pipeline_impl.cc (right): https://codereview.chromium.org/1148253006/diff/40001/chromecast/media/cma/pipeline/video_pipeline_impl.cc#newcode122 chromecast/media/cma/pipeline/video_pipeline_impl.cc:122: secondary_config = DecoderConfigAdapter::ToCastVideoConfig(kSecondary, On 2015/06/05 ...
5 years, 6 months ago (2015-06-05 18:08:16 UTC) #8
erickung1
https://codereview.chromium.org/1148253006/diff/40001/chromecast/media/cma/pipeline/video_pipeline_impl.cc File chromecast/media/cma/pipeline/video_pipeline_impl.cc (right): https://codereview.chromium.org/1148253006/diff/40001/chromecast/media/cma/pipeline/video_pipeline_impl.cc#newcode122 chromecast/media/cma/pipeline/video_pipeline_impl.cc:122: secondary_config = DecoderConfigAdapter::ToCastVideoConfig(kSecondary, On 2015/06/05 18:08:16, gunsch wrote: > ...
5 years, 6 months ago (2015-06-05 20:44:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148253006/80001
5 years, 6 months ago (2015-06-05 20:46:51 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/68832)
5 years, 6 months ago (2015-06-05 20:59:29 UTC) #14
erickung1
Hi Daniel and Tom, Can you help to review chromecast/common/media/cma_messages.h ? Thanks.
5 years, 6 months ago (2015-06-05 22:05:00 UTC) #16
Tom Sepez
Messages LGTM
5 years, 6 months ago (2015-06-05 22:07:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148253006/80001
5 years, 6 months ago (2015-06-05 22:09:21 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/17742) chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 6 months ago (2015-06-05 22:19:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148253006/80001
5 years, 6 months ago (2015-06-05 22:25:39 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/17759) chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 6 months ago (2015-06-05 22:36:56 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148253006/100001
5 years, 6 months ago (2015-06-05 23:36:38 UTC) #28
dcheng
not lgtm https://codereview.chromium.org/1148253006/diff/80001/chromecast/media/cma/pipeline/video_pipeline_impl.cc File chromecast/media/cma/pipeline/video_pipeline_impl.cc (right): https://codereview.chromium.org/1148253006/diff/80001/chromecast/media/cma/pipeline/video_pipeline_impl.cc#newcode118 chromecast/media/cma/pipeline/video_pipeline_impl.cc:118: DecoderConfigAdapter::ToCastVideoConfig(kPrimary, configs[0]); What process is this running ...
5 years, 6 months ago (2015-06-05 23:41:18 UTC) #29
erickung1
On 2015/06/05 23:41:18, dcheng wrote: > not lgtm > > https://codereview.chromium.org/1148253006/diff/80001/chromecast/media/cma/pipeline/video_pipeline_impl.cc > File chromecast/media/cma/pipeline/video_pipeline_impl.cc (right): ...
5 years, 6 months ago (2015-06-05 23:46:28 UTC) #31
dcheng
On 2015/06/05 at 23:46:28, erickung wrote: > On 2015/06/05 23:41:18, dcheng wrote: > > not ...
5 years, 6 months ago (2015-06-05 23:48:53 UTC) #32
erickung1
https://codereview.chromium.org/1148253006/diff/80001/chromecast/media/cma/pipeline/video_pipeline_impl.cc File chromecast/media/cma/pipeline/video_pipeline_impl.cc (right): https://codereview.chromium.org/1148253006/diff/80001/chromecast/media/cma/pipeline/video_pipeline_impl.cc#newcode118 chromecast/media/cma/pipeline/video_pipeline_impl.cc:118: DecoderConfigAdapter::ToCastVideoConfig(kPrimary, configs[0]); On 2015/06/05 23:41:18, dcheng wrote: > What ...
5 years, 6 months ago (2015-06-06 00:04:17 UTC) #33
dcheng
Thanks, LGTM. In general, we must be very careful with any IPC messages handled by ...
5 years, 6 months ago (2015-06-06 00:07:18 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148253006/120001
5 years, 6 months ago (2015-06-06 00:10:32 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, no build URL)
5 years, 6 months ago (2015-06-06 00:58:11 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148253006/140001
5 years, 6 months ago (2015-06-07 03:34:57 UTC) #42
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 6 months ago (2015-06-07 03:43:06 UTC) #43
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/f4e0b8865f3f0969f50587c31508c99557127f28 Cr-Commit-Position: refs/heads/master@{#333225}
5 years, 6 months ago (2015-06-07 03:43:56 UTC) #44
erickung1
5 years, 6 months ago (2015-06-07 05:20:26 UTC) #45
Message was sent while issue was closed.
https://codereview.chromium.org/1148253006/diff/100001/chromecast/media/cma/p...
File chromecast/media/cma/pipeline/video_pipeline_impl.cc (right):

https://codereview.chromium.org/1148253006/diff/100001/chromecast/media/cma/p...
chromecast/media/cma/pipeline/video_pipeline_impl.cc:140:
DCHECK(!audio_config.IsValidConfig());
I ended up removing this DCHECK in this CL, same as in audio_pipeline_impl.cc
because two unit test are faileud due to the wrong assumption that both config
will be provided.

I will create another CL to add these DCHECK and change the unit test

Powered by Google App Engine
This is Rietveld 408576698