media: add basic MediaRenderer mojom and TypeConverters
commit9f8fe767920001f734dddc678bad491be8cc363b
authortim <tim@chromium.org>
Fri, 5 Sep 2014 01:29:57 +0000 (4 18:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Sep 2014 01:33:22 +0000 (5 01:33 +0000)
tree4e190e5c70553780785078bd3bb8460c6daa173f
parent13db9e4e90bf7809af656f04a7d5bda626cdc893
media: add basic MediaRenderer mojom and TypeConverters

This patch is the basis for mojo transport between a media::Pipeline and a media::Renderer implementation, e.g:

[ Pipeline [ media::Renderer [ Mojo Transport ] media::RendererImpl ] Output ]

The plan is to continue to iterate on the 'Mojo Transport' chunk without blocking anyone wishing to prototype one level up on either side.  As such, some things in this CL like DecodeAndRender are not intended to be the proper long term solution, but allow immediate and mostly isolated prototyping to happen in parallel to development of a utility / class to allow framed data flowing over a mojo::DataPipe. As several TODOs in the CL mention, the current transport implementation incurs a high cost (many large allocations) and has inherently low throughput (can't write new buffer until each buffer is ACKed).

BUG=410451

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

Cr-Commit-Position: refs/heads/master@{#293392}
media/media.gyp
media/mojo/DEPS [new file with mode: 0644]
media/mojo/interfaces/BUILD.gn [new file with mode: 0644]
media/mojo/interfaces/media_renderer.mojom [new file with mode: 0644]
media/mojo/interfaces/media_types.mojom [new file with mode: 0644]
media/mojo/services/BUILD.gn [new file with mode: 0644]
media/mojo/services/media_type_converters.cc [new file with mode: 0644]
media/mojo/services/media_type_converters.h [new file with mode: 0644]
media/mojo/services/media_type_converters_unittest.cc [new file with mode: 0644]
mojo/mojo_variables.gypi