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

Issue 2096063003: media: Add MojoDecoderBuffer{Reader|Writer} (Closed)

Created:
4 years, 6 months ago by xhwang
Modified:
4 years, 5 months ago
CC:
Ken Rockot(use gerrit already), Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, jrummell, posciak+watch_chromium.org, qsr+mojo_chromium.org, Tima Vaisburd, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Add MojoDecoderBuffer{Reader|Writer} This removes duplicate code in clients/services that transfer/receive media DecoderBuffers over DataPipe. The implementation of *::ConvertDecoderBuffer() is copied from MojoAudioDecoder*, which has recently been updated and reviewed by mojo owners (https://chromiumcodereview.appspot.com/1982883003/) BUG=621784 TEST=Moved unittest to a new file with improvements. Committed: https://crrev.com/1087d4ca6be621c1e687987b40df73c27783a800 Cr-Commit-Position: refs/heads/master@{#402496}

Patch Set 1 #

Total comments: 10

Patch Set 2 : comments addressed #

Total comments: 18

Patch Set 3 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+546 lines, -372 lines) Patch
M media/mojo/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M media/mojo/clients/mojo_audio_decoder.h View 4 chunks +5 lines, -11 lines 0 comments Download
M media/mojo/clients/mojo_audio_decoder.cc View 1 5 chunks +11 lines, -46 lines 0 comments Download
M media/mojo/clients/mojo_decryptor.h View 2 chunks +10 lines, -15 lines 0 comments Download
M media/mojo/clients/mojo_decryptor.cc View 1 7 chunks +47 lines, -69 lines 0 comments Download
M media/mojo/clients/mojo_demuxer_stream_impl.h View 3 chunks +5 lines, -2 lines 0 comments Download
M media/mojo/clients/mojo_demuxer_stream_impl.cc View 1 4 chunks +15 lines, -30 lines 0 comments Download
M media/mojo/clients/mojo_video_decoder.h View 3 chunks +2 lines, -2 lines 0 comments Download
M media/mojo/clients/mojo_video_decoder.cc View 1 3 chunks +13 lines, -25 lines 0 comments Download
M media/mojo/common/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A media/mojo/common/mojo_decoder_buffer_converter.h View 1 1 chunk +76 lines, -0 lines 0 comments Download
A media/mojo/common/mojo_decoder_buffer_converter.cc View 1 2 1 chunk +153 lines, -0 lines 0 comments Download
A media/mojo/common/mojo_decoder_buffer_converter_unittest.cc View 1 1 chunk +126 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_audio_decoder_service.h View 2 chunks +2 lines, -8 lines 0 comments Download
M media/mojo/services/mojo_audio_decoder_service.cc View 1 4 chunks +5 lines, -37 lines 0 comments Download
M media/mojo/services/mojo_decryptor_service.h View 2 chunks +7 lines, -10 lines 0 comments Download
M media/mojo/services/mojo_decryptor_service.cc View 1 6 chunks +40 lines, -51 lines 0 comments Download
M media/mojo/services/mojo_demuxer_stream_adapter.h View 4 chunks +5 lines, -3 lines 0 comments Download
M media/mojo/services/mojo_demuxer_stream_adapter.cc View 1 5 chunks +10 lines, -33 lines 0 comments Download
M media/mojo/services/mojo_video_decoder_service.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_video_decoder_service.cc View 1 2 3 chunks +9 lines, -28 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
xhwang
sandersd, alokp: PTAL timav, jrummell, rockot: FYI
4 years, 6 months ago (2016-06-24 19:05:44 UTC) #3
alokp
This looks pretty good. I just have high-level comment on API and function names. https://chromiumcodereview.appspot.com/2096063003/diff/1/media/mojo/clients/mojo_audio_decoder.cc ...
4 years, 6 months ago (2016-06-24 19:35:10 UTC) #4
xhwang
comments addressed
4 years, 6 months ago (2016-06-24 23:20:20 UTC) #5
xhwang
PTAL again https://chromiumcodereview.appspot.com/2096063003/diff/1/media/mojo/clients/mojo_audio_decoder.cc File media/mojo/clients/mojo_audio_decoder.cc (right): https://chromiumcodereview.appspot.com/2096063003/diff/1/media/mojo/clients/mojo_audio_decoder.cc#newcode166 media/mojo/clients/mojo_audio_decoder.cc:166: mojo_decoder_buffer_writer_ = MojoDecoderBufferWriter::Create( On 2016/06/24 19:35:10, alokp ...
4 years, 6 months ago (2016-06-24 23:44:12 UTC) #6
xhwang
kindly ping. I'd like to get this landed before I OOO. Thanks!
4 years, 5 months ago (2016-06-27 19:55:09 UTC) #7
alokp
lgtm mostly nits. looks very good. https://codereview.chromium.org/2096063003/diff/20001/media/mojo/common/mojo_decoder_buffer_converter.h File media/mojo/common/mojo_decoder_buffer_converter.h (right): https://codereview.chromium.org/2096063003/diff/20001/media/mojo/common/mojo_decoder_buffer_converter.h#newcode5 media/mojo/common/mojo_decoder_buffer_converter.h:5: #ifndef MEDIA_MOJO_COMMON_MOJO_DECODER_BUFFER_CONVERTER_ nit: ...
4 years, 5 months ago (2016-06-27 20:18:22 UTC) #8
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc File media/mojo/clients/mojo_audio_decoder.cc (left): https://chromiumcodereview.appspot.com/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc#oldcode60 media/mojo/clients/mojo_audio_decoder.cc:60: if (remote_decoder_.encountered_error()) { We use this pattern everywhere; what ...
4 years, 5 months ago (2016-06-27 20:24:55 UTC) #9
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc File media/mojo/clients/mojo_audio_decoder.cc (left): https://chromiumcodereview.appspot.com/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc#oldcode60 media/mojo/clients/mojo_audio_decoder.cc:60: if (remote_decoder_.encountered_error()) { On 2016/06/27 20:24:54, sandersd wrote: > ...
4 years, 5 months ago (2016-06-27 20:25:20 UTC) #10
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc File media/mojo/clients/mojo_audio_decoder.cc (left): https://codereview.chromium.org/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc#oldcode60 media/mojo/clients/mojo_audio_decoder.cc:60: if (remote_decoder_.encountered_error()) { On 2016/06/27 at 20:25:20, sandersd wrote: ...
4 years, 5 months ago (2016-06-27 21:00:27 UTC) #12
sandersd (OOO until July 31)
https://codereview.chromium.org/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc File media/mojo/clients/mojo_audio_decoder.cc (left): https://codereview.chromium.org/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc#oldcode60 media/mojo/clients/mojo_audio_decoder.cc:60: if (remote_decoder_.encountered_error()) { On 2016/06/27 21:00:27, Ken Rockot wrote: ...
4 years, 5 months ago (2016-06-27 21:04:21 UTC) #13
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc File media/mojo/clients/mojo_audio_decoder.cc (left): https://codereview.chromium.org/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc#oldcode60 media/mojo/clients/mojo_audio_decoder.cc:60: if (remote_decoder_.encountered_error()) { On 2016/06/27 at 21:04:21, sandersd wrote: ...
4 years, 5 months ago (2016-06-27 21:17:21 UTC) #14
xhwang
comments addressed
4 years, 5 months ago (2016-06-28 01:08:38 UTC) #15
xhwang
https://chromiumcodereview.appspot.com/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc File media/mojo/clients/mojo_audio_decoder.cc (left): https://chromiumcodereview.appspot.com/2096063003/diff/20001/media/mojo/clients/mojo_audio_decoder.cc#oldcode60 media/mojo/clients/mojo_audio_decoder.cc:60: if (remote_decoder_.encountered_error()) { On 2016/06/27 21:17:21, Ken Rockot wrote: ...
4 years, 5 months ago (2016-06-28 01:11:48 UTC) #16
xhwang
PTAL again. Thanks!
4 years, 5 months ago (2016-06-28 01:12:06 UTC) #17
sandersd (OOO until July 31)
lgtm
4 years, 5 months ago (2016-06-28 01:18:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096063003/40001
4 years, 5 months ago (2016-06-28 05:36:18 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/235473)
4 years, 5 months ago (2016-06-28 06:39:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096063003/40001
4 years, 5 months ago (2016-06-28 16:48:42 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-28 17:18:49 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 17:21:15 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1087d4ca6be621c1e687987b40df73c27783a800
Cr-Commit-Position: refs/heads/master@{#402496}

Powered by Google App Engine
This is Rietveld 408576698