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

Issue 760523008: Switch from a DataPipe per DecoderBuffer to a single one. (Closed)

Created:
6 years ago by DaleCurtis
Modified:
6 years ago
Reviewers:
xhwang
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Switch from a DataPipe per DecoderBuffer to a single one. Instead of letting the type converter for DecoderBuffer handle transfer of the DecoderBuffer::data(), clients are now expected to handle this externally. MojoDemuxerStreamAdapter now deserializing the data section via a shared pipe created by MojoDemuxerStreamImpl. The pipe is sized dynamically for audio or video content. We don't have framed DataPipe support yet, but this will at least prevent us from creating thousands of DataPipes per minute. BUG=392236 TEST=html_viewer using audio/video urls. Committed: https://crrev.com/0134ed1292b006e48e293a8863b1dff0bed5e871 Cr-Commit-Position: refs/heads/master@{#307328}

Patch Set 1 #

Patch Set 2 : Rebase. Fix. #

Total comments: 17

Patch Set 3 : Comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -78 lines) Patch
M media/base/decoder_buffer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/decoder_buffer.cc View 1 2 3 chunks +24 lines, -8 lines 0 comments Download
M media/mojo/interfaces/demuxer_stream.mojom View 1 2 1 chunk +11 lines, -11 lines 0 comments Download
M media/mojo/interfaces/media_types.mojom View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M media/mojo/services/media_type_converters.cc View 1 6 chunks +15 lines, -45 lines 0 comments Download
M media/mojo/services/mojo_demuxer_stream_adapter.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_demuxer_stream_adapter.cc View 1 2 5 chunks +15 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_demuxer_stream_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_demuxer_stream_impl.cc View 1 2 3 chunks +30 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
DaleCurtis
Please just glance through right now; I've been trying to test this for over a ...
6 years ago (2014-12-05 20:55:42 UTC) #2
DaleCurtis
Okay using the headless shell I can confirm this all works! \o/
6 years ago (2014-12-05 22:48:44 UTC) #3
xhwang
It's looking pretty good. Just have some comments. https://codereview.chromium.org/760523008/diff/20001/media/base/decoder_buffer.cc File media/base/decoder_buffer.cc (right): https://codereview.chromium.org/760523008/diff/20001/media/base/decoder_buffer.cc#newcode111 media/base/decoder_buffer.cc:111: base::AlignedAlloc(side_data_size_ ...
6 years ago (2014-12-06 00:03:45 UTC) #4
DaleCurtis
https://codereview.chromium.org/760523008/diff/20001/media/base/decoder_buffer.cc File media/base/decoder_buffer.cc (right): https://codereview.chromium.org/760523008/diff/20001/media/base/decoder_buffer.cc#newcode111 media/base/decoder_buffer.cc:111: base::AlignedAlloc(side_data_size_ + kPaddingSize, kAlignmentSize))); On 2014/12/06 00:03:44, xhwang wrote: ...
6 years ago (2014-12-06 00:42:59 UTC) #5
xhwang
lgtm https://codereview.chromium.org/760523008/diff/20001/media/mojo/services/mojo_demuxer_stream_impl.cc File media/mojo/services/mojo_demuxer_stream_impl.cc (right): https://codereview.chromium.org/760523008/diff/20001/media/mojo/services/mojo_demuxer_stream_impl.cc#newcode88 media/mojo/services/mojo_demuxer_stream_impl.cc:88: options.capacity_num_bytes = 1.5 * (1024 * 1024); On ...
6 years ago (2014-12-06 01:16:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760523008/40001
6 years ago (2014-12-08 19:51:42 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years ago (2014-12-08 20:44:58 UTC) #9
commit-bot: I haz the power
6 years ago (2014-12-08 20:46:26 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0134ed1292b006e48e293a8863b1dff0bed5e871
Cr-Commit-Position: refs/heads/master@{#307328}

Powered by Google App Engine
This is Rietveld 408576698