Switch from a DataPipe per DecoderBuffer to a single one.
commit0134ed1292b006e48e293a8863b1dff0bed5e871
authordalecurtis <dalecurtis@chromium.org>
Mon, 8 Dec 2014 20:44:46 +0000 (8 12:44 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 8 Dec 2014 20:45:57 +0000 (8 20:45 +0000)
tree2ef565553be717fff1ef6d3cd9eb8e70b43896e1
parentd4a1983e9b215bcd6eacf82c7ceb57a482a1e22f
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.

Review URL: https://codereview.chromium.org/760523008

Cr-Commit-Position: refs/heads/master@{#307328}
media/base/decoder_buffer.cc
media/base/decoder_buffer.h
media/mojo/interfaces/demuxer_stream.mojom
media/mojo/interfaces/media_types.mojom
media/mojo/services/media_type_converters.cc
media/mojo/services/mojo_demuxer_stream_adapter.cc
media/mojo/services/mojo_demuxer_stream_adapter.h
media/mojo/services/mojo_demuxer_stream_impl.cc
media/mojo/services/mojo_demuxer_stream_impl.h