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

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed)

Created:
5 years ago by Tima Vaisburd
Modified:
5 years ago
CC:
chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, jbauman+watch_chromium.org, kalyank, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, sievers+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Passed is_encrypted parameter to the VDA initialization. The VDA on Android (AVDA) requires this info to properly implement CDM. This CL changes the method VideoDecodeAccelerator::Initialize() to accept the structure holding VDA initialization parameters. There are two parameters: video codec profile and the is_encrypted flag. For Android both parameters are propagated to GPU process. BUG=542417 Committed: https://crrev.com/e32b7be080461db66d13fd54b4e312568efe03e9 Cr-Commit-Position: refs/heads/master@{#363127}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Compilation fixes #

Patch Set 3 : More compilation fixes #

Patch Set 4 : Deleted erroneously added files #

Total comments: 30

Patch Set 5 : Addressed comments #

Total comments: 17

Patch Set 6 : Renamed StreamParameters to Config, added in-class initialization in Config #

Total comments: 1

Patch Set 7 : Fixed compilation and a comment #

Patch Set 8 : Rebased #

Total comments: 14

Patch Set 9 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -64 lines) Patch
M content/common/gpu/client/gpu_video_decode_accelerator_host.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gpu_video_decode_accelerator_host.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 3 4 5 3 chunks +8 lines, -3 lines 0 comments Download
M content/common/gpu/media/dxva_video_decode_accelerator_win.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/media/dxva_video_decode_accelerator_win.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -4 lines 0 comments Download
M content/common/gpu/media/fake_video_decode_accelerator.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/media/fake_video_decode_accelerator.cc View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M content/common/gpu/media/v4l2_slice_video_decode_accelerator.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc View 1 2 3 4 5 2 chunks +9 lines, -5 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.cc View 1 2 3 4 5 2 chunks +9 lines, -4 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -1 line 0 comments Download
M content/common/gpu/media/vt_video_decode_accelerator_mac.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/vt_video_decode_accelerator_mac.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -4 lines 0 comments Download
M content/renderer/media/rtc_video_decoder.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/pepper/video_decoder_shim.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/pepper/video_decoder_shim.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -10 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M media/video/mock_video_decode_accelerator.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -2 lines 0 comments Download
M media/video/video_decode_accelerator.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (15 generated)
Tima Vaisburd
PTAL. +sandersd@ as content/common/gpu/ owner +dcheng@ as content/common/gpu/gpu_messages.h owner https://codereview.chromium.org/1485043002/diff/1/content/common/gpu/gpu_command_buffer_stub.h File content/common/gpu/gpu_command_buffer_stub.h (right): https://codereview.chromium.org/1485043002/diff/1/content/common/gpu/gpu_command_buffer_stub.h#newcode185 content/common/gpu/gpu_command_buffer_stub.h:185: ...
5 years ago (2015-12-01 01:41:54 UTC) #2
dcheng
lgtm but one nit https://codereview.chromium.org/1485043002/diff/1/media/video/video_decode_accelerator.h File media/video/video_decode_accelerator.h (right): https://codereview.chromium.org/1485043002/diff/1/media/video/video_decode_accelerator.h#newcode59 media/video/video_decode_accelerator.h:59: bool is_encrypted = false); The ...
5 years ago (2015-12-01 02:03:13 UTC) #3
xhwang
looking good. just a few comments https://codereview.chromium.org/1485043002/diff/60001/content/common/gpu/media/gpu_video_decode_accelerator.h File content/common/gpu/media/gpu_video_decode_accelerator.h (right): https://codereview.chromium.org/1485043002/diff/60001/content/common/gpu/media/gpu_video_decode_accelerator.h#newcode68 content/common/gpu/media/gpu_video_decode_accelerator.h:68: // one of ...
5 years ago (2015-12-01 07:15:02 UTC) #4
Pawel Osciak
https://codereview.chromium.org/1485043002/diff/60001/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc File content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc (right): https://codereview.chromium.org/1485043002/diff/60001/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc#newcode436 content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc:436: bool V4L2SliceVideoDecodeAccelerator::Initialize( Initialize() should fail for VDAs that don't ...
5 years ago (2015-12-01 07:16:07 UTC) #6
liberato (no reviews please)
lgtm % nits. https://codereview.chromium.org/1485043002/diff/60001/content/common/gpu/gpu_command_buffer_stub.h File content/common/gpu/gpu_command_buffer_stub.h (right): https://codereview.chromium.org/1485043002/diff/60001/content/common/gpu/gpu_command_buffer_stub.h#newcode185 content/common/gpu/gpu_command_buffer_stub.h:185: const media::VideoDecodeAccelerator::InitParams& params, nit - formatting. ...
5 years ago (2015-12-01 14:59:35 UTC) #7
Tima Vaisburd
https://codereview.chromium.org/1485043002/diff/60001/content/common/gpu/gpu_command_buffer_stub.h File content/common/gpu/gpu_command_buffer_stub.h (right): https://codereview.chromium.org/1485043002/diff/60001/content/common/gpu/gpu_command_buffer_stub.h#newcode185 content/common/gpu/gpu_command_buffer_stub.h:185: const media::VideoDecodeAccelerator::InitParams& params, On 2015/12/01 14:59:35, liberato wrote: > ...
5 years ago (2015-12-02 02:25:07 UTC) #8
xhwang
https://codereview.chromium.org/1485043002/diff/80001/content/common/gpu/media/dxva_video_decode_accelerator.cc File content/common/gpu/media/dxva_video_decode_accelerator.cc (right): https://codereview.chromium.org/1485043002/diff/80001/content/common/gpu/media/dxva_video_decode_accelerator.cc#newcode638 content/common/gpu/media/dxva_video_decode_accelerator.cc:638: DLOG(ERROR) << "Encrypted streams are not supported for this ...
5 years ago (2015-12-02 06:48:19 UTC) #9
liberato (no reviews please)
https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h File media/video/video_decode_accelerator.h (right): https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h#newcode57 media/video/video_decode_accelerator.h:57: struct MEDIA_EXPORT StreamParameters { On 2015/12/02 06:48:18, xhwang wrote: ...
5 years ago (2015-12-02 16:18:50 UTC) #10
Tima Vaisburd
https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.cc File media/video/video_decode_accelerator.cc (right): https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.cc#newcode13 media/video/video_decode_accelerator.cc:13: : profile(VIDEO_CODEC_PROFILE_UNKNOWN), is_encrypted(false) {} On 2015/12/02 06:48:18, xhwang wrote: ...
5 years ago (2015-12-02 18:02:15 UTC) #11
liberato (no reviews please)
yet another beautiful theory spoiled by facts. -fl https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h File media/video/video_decode_accelerator.h (right): https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h#newcode57 media/video/video_decode_accelerator.h:57: struct ...
5 years ago (2015-12-02 18:29:47 UTC) #12
xhwang
https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h File media/video/video_decode_accelerator.h (right): https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h#newcode57 media/video/video_decode_accelerator.h:57: struct MEDIA_EXPORT StreamParameters { On 2015/12/02 18:29:47, liberato wrote: ...
5 years ago (2015-12-02 18:58:35 UTC) #13
Tima Vaisburd
Please take another look. https://codereview.chromium.org/1485043002/diff/80001/content/common/gpu/media/dxva_video_decode_accelerator.cc File content/common/gpu/media/dxva_video_decode_accelerator.cc (right): https://codereview.chromium.org/1485043002/diff/80001/content/common/gpu/media/dxva_video_decode_accelerator.cc#newcode638 content/common/gpu/media/dxva_video_decode_accelerator.cc:638: DLOG(ERROR) << "Encrypted streams are ...
5 years ago (2015-12-02 22:56:58 UTC) #14
Tima Vaisburd
Adding bbudge@ as content/renderer/pepper/ owner
5 years ago (2015-12-02 23:00:37 UTC) #16
xhwang
lgtm % one tiny nit https://codereview.chromium.org/1485043002/diff/100001/content/common/gpu/media/gpu_video_decode_accelerator.h File content/common/gpu/media/gpu_video_decode_accelerator.h (right): https://codereview.chromium.org/1485043002/diff/100001/content/common/gpu/media/gpu_video_decode_accelerator.h#newcode68 content/common/gpu/media/gpu_video_decode_accelerator.h:68: // one of them ...
5 years ago (2015-12-02 23:04:30 UTC) #17
sandersd (OOO until July 31)
https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h File media/video/video_decode_accelerator.h (right): https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h#newcode57 media/video/video_decode_accelerator.h:57: struct MEDIA_EXPORT StreamParameters { On 2015/12/02 18:02:15, Tima Vaisburd ...
5 years ago (2015-12-02 23:33:28 UTC) #18
Tima Vaisburd
On 2015/12/02 23:33:28, sandersd wrote: > https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h > File media/video/video_decode_accelerator.h (right): > > https://codereview.chromium.org/1485043002/diff/80001/media/video/video_decode_accelerator.h#newcode57 > ...
5 years ago (2015-12-02 23:42:20 UTC) #19
xhwang
On 2015/12/02 23:42:20, Tima Vaisburd wrote: > On 2015/12/02 23:33:28, sandersd wrote: > > > ...
5 years ago (2015-12-02 23:59:24 UTC) #20
sandersd (OOO until July 31)
> Dan: In VDAv2, we'll probably use Mojo instead of IPC to send VDC. And ...
5 years ago (2015-12-03 00:10:03 UTC) #21
Tima Vaisburd
Added ccameron@ as content/common/gpu/ owner
5 years ago (2015-12-03 00:16:57 UTC) #23
bbudge
content/renderer/pepper LGTM
5 years ago (2015-12-03 02:49:26 UTC) #24
ccameron
content/common/gpu/ LGTM
5 years ago (2015-12-03 19:14:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1485043002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1485043002/120001
5 years ago (2015-12-03 19:19:51 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/104914)
5 years ago (2015-12-03 21:42:54 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1485043002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1485043002/140001
5 years ago (2015-12-03 22:00:34 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_compile_dbg_ng on ...
5 years ago (2015-12-04 00:08:43 UTC) #35
Pawel Osciak
https://codereview.chromium.org/1485043002/diff/140001/content/common/gpu/gpu_command_buffer_stub.h File content/common/gpu/gpu_command_buffer_stub.h (right): https://codereview.chromium.org/1485043002/diff/140001/content/common/gpu/gpu_command_buffer_stub.h#newcode24 content/common/gpu/gpu_command_buffer_stub.h:24: #include "media/base/video_decoder_config.h" Perhaps this include would no longer be ...
5 years ago (2015-12-04 00:48:59 UTC) #38
xhwang
https://codereview.chromium.org/1485043002/diff/140001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc File content/common/gpu/media/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/1485043002/diff/140001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc#newcode638 content/common/gpu/media/dxva_video_decode_accelerator_win.cc:638: NOTREACHED() << "Encrypted streams are not supported for this ...
5 years ago (2015-12-04 01:11:50 UTC) #39
Tima Vaisburd
https://codereview.chromium.org/1485043002/diff/140001/content/common/gpu/gpu_command_buffer_stub.h File content/common/gpu/gpu_command_buffer_stub.h (right): https://codereview.chromium.org/1485043002/diff/140001/content/common/gpu/gpu_command_buffer_stub.h#newcode24 content/common/gpu/gpu_command_buffer_stub.h:24: #include "media/base/video_decoder_config.h" On 2015/12/04 00:48:58, Pawel Osciak wrote: > ...
5 years ago (2015-12-04 01:36:51 UTC) #40
Pawel Osciak
lgtm
5 years ago (2015-12-04 01:43:10 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1485043002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1485043002/160001
5 years ago (2015-12-04 01:54:53 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years ago (2015-12-04 04:11:41 UTC) #45
commit-bot: I haz the power
5 years ago (2015-12-04 04:13:04 UTC) #47
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e32b7be080461db66d13fd54b4e312568efe03e9
Cr-Commit-Position: refs/heads/master@{#363127}

Powered by Google App Engine
This is Rietveld 408576698