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

Issue 491733004: media: add basic MediaRenderer mojom and TypeConverters (Closed)

Created:
6 years, 4 months ago by tim (not reviewing)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, scherkus (not reviewing), DaveMoore, alokp
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/9f8fe767920001f734dddc678bad491be8cc363b Cr-Commit-Position: refs/heads/master@{#293392}

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : mojo > media #

Total comments: 2

Patch Set 4 : darin's review: fix enum #

Total comments: 36

Patch Set 5 : review #

Total comments: 10

Patch Set 6 : xhwang's review #

Total comments: 4

Patch Set 7 : scherkus' review #

Patch Set 8 : rebase #

Patch Set 9 : ? #

Patch Set 10 : EOF newline #

Patch Set 11 : rebase #

Patch Set 12 : add max_time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -9 lines) Patch
M media/media.gyp View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
A + media/mojo/DEPS View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/mojo/interfaces/BUILD.gn View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
A media/mojo/interfaces/media_renderer.mojom View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +60 lines, -0 lines 0 comments Download
A media/mojo/interfaces/media_types.mojom View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A media/mojo/services/BUILD.gn View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A media/mojo/services/media_type_converters.h View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A media/mojo/services/media_type_converters.cc View 1 2 3 4 5 6 7 1 chunk +105 lines, -0 lines 0 comments Download
A media/mojo/services/media_type_converters_unittest.cc View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
M mojo/mojo_variables.gypi View 1 2 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
xhwang
I know this is not for review. Just having some nits (mostly on naming) anyways ...
6 years, 4 months ago (2014-08-22 23:30:02 UTC) #1
darin (slow to review)
I wonder if we shouldn't consider putting the mojom and impl-side under src/media... On Aug ...
6 years, 4 months ago (2014-08-23 17:27:03 UTC) #2
tim (not reviewing)
Please read updated CL description / disclaimer, ping me if you're still confused about the ...
6 years, 3 months ago (2014-09-02 20:43:14 UTC) #6
darin (slow to review)
https://codereview.chromium.org/491733004/diff/100001/media/mojo/interfaces/media_types.mojom File media/mojo/interfaces/media_types.mojom (right): https://codereview.chromium.org/491733004/diff/100001/media/mojo/interfaces/media_types.mojom#newcode12 media/mojo/interfaces/media_types.mojom:12: BUFFERING_HAVE_NOTHING, doesn't this mean we end up with BUFFERING_STATE_BUFFERING_HAVE_NOTHING ...
6 years, 3 months ago (2014-09-02 20:51:47 UTC) #7
tim (not reviewing)
https://codereview.chromium.org/491733004/diff/100001/media/mojo/interfaces/media_types.mojom File media/mojo/interfaces/media_types.mojom (right): https://codereview.chromium.org/491733004/diff/100001/media/mojo/interfaces/media_types.mojom#newcode12 media/mojo/interfaces/media_types.mojom:12: BUFFERING_HAVE_NOTHING, On 2014/09/02 20:51:47, darin wrote: > doesn't this ...
6 years, 3 months ago (2014-09-02 21:55:50 UTC) #9
scherkus (not reviewing)
nits and a question about time https://codereview.chromium.org/491733004/diff/130001/media/mojo/interfaces/media_renderer.mojom File media/mojo/interfaces/media_renderer.mojom (right): https://codereview.chromium.org/491733004/diff/130001/media/mojo/interfaces/media_renderer.mojom#newcode24 media/mojo/interfaces/media_renderer.mojom:24: StartPlayingFrom(int64 time_delta_usec); does ...
6 years, 3 months ago (2014-09-02 23:50:20 UTC) #11
xhwang
looking pretty good. just a bunch of nits. https://codereview.chromium.org/491733004/diff/130001/media/mojo/interfaces/media_renderer.mojom File media/mojo/interfaces/media_renderer.mojom (right): https://codereview.chromium.org/491733004/diff/130001/media/mojo/interfaces/media_renderer.mojom#newcode12 media/mojo/interfaces/media_renderer.mojom:12: Initialize() ...
6 years, 3 months ago (2014-09-03 00:09:09 UTC) #12
tim (not reviewing)
https://codereview.chromium.org/491733004/diff/130001/media/mojo/interfaces/media_renderer.mojom File media/mojo/interfaces/media_renderer.mojom (right): https://codereview.chromium.org/491733004/diff/130001/media/mojo/interfaces/media_renderer.mojom#newcode12 media/mojo/interfaces/media_renderer.mojom:12: Initialize() => (bool succeeded); On 2014/09/03 00:09:08, xhwang wrote: ...
6 years, 3 months ago (2014-09-03 00:43:51 UTC) #13
xhwang
lgtm % nits https://codereview.chromium.org/491733004/diff/150001/media/mojo/interfaces/media_renderer.mojom File media/mojo/interfaces/media_renderer.mojom (right): https://codereview.chromium.org/491733004/diff/150001/media/mojo/interfaces/media_renderer.mojom#newcode14 media/mojo/interfaces/media_renderer.mojom:14: // Decodes and renders|buffer|, calling back ...
6 years, 3 months ago (2014-09-03 16:09:38 UTC) #14
tim (not reviewing)
Thanks for the review. https://codereview.chromium.org/491733004/diff/150001/media/mojo/interfaces/media_renderer.mojom File media/mojo/interfaces/media_renderer.mojom (right): https://codereview.chromium.org/491733004/diff/150001/media/mojo/interfaces/media_renderer.mojom#newcode14 media/mojo/interfaces/media_renderer.mojom:14: // Decodes and renders|buffer|, calling ...
6 years, 3 months ago (2014-09-03 16:39:46 UTC) #15
scherkus (not reviewing)
lgtm w/ nits OOC should we file a tracking BUG for media mojo stuff and ...
6 years, 3 months ago (2014-09-03 17:08:29 UTC) #16
tim (not reviewing)
All done, created bug 410451. darin@ - will still require approval for mojo/mojo_variables (I'm not ...
6 years, 3 months ago (2014-09-03 19:36:23 UTC) #17
tim (not reviewing)
+dave for mojo/ owners review
6 years, 3 months ago (2014-09-04 16:49:33 UTC) #19
darin (slow to review)
LGTM for mojo/mojo_variables.gypi
6 years, 3 months ago (2014-09-04 21:40:36 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/491733004/290001
6 years, 3 months ago (2014-09-04 21:47:19 UTC) #22
DaveMoore
lgtm
6 years, 3 months ago (2014-09-04 21:51:11 UTC) #23
commit-bot: I haz the power
Committed patchset #12 (id:290001) as a17e408b7e5ecd50312d8774c167869e12a10ac3
6 years, 3 months ago (2014-09-05 01:31:57 UTC) #24
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:34:54 UTC) #25
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/9f8fe767920001f734dddc678bad491be8cc363b
Cr-Commit-Position: refs/heads/master@{#293392}

Powered by Google App Engine
This is Rietveld 408576698