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

Issue 1873513003: Add video-rendering to mojo media pipeline. (Closed)

Created:
4 years, 8 months ago by alokp
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, 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

Add video-rendering to mojo media pipeline. BUG=571155 Committed: https://crrev.com/16c8e68a20fc00d1c375af94770373d708ef3814 Cr-Commit-Position: refs/heads/master@{#394912}

Patch Set 1 #

Patch Set 2 : added NaturalSizeChangedCB #

Patch Set 3 : more plumbing #

Patch Set 4 : minor cleanup #

Total comments: 38

Patch Set 5 : addressed comments #

Total comments: 3

Patch Set 6 : rebase #

Patch Set 7 : uses VideoOverlayFactory in CmaRenderer #

Total comments: 4

Patch Set 8 : fixes component-build link error #

Patch Set 9 : export VideoOverlayFactory #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -200 lines) Patch
M chromecast/renderer/media/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chromecast/renderer/media/cma_renderer.h View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download
M chromecast/renderer/media/cma_renderer.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
D chromecast/renderer/media/hole_frame_factory.h View 1 2 3 4 5 6 1 chunk +0 lines, -51 lines 0 comments Download
D chromecast/renderer/media/hole_frame_factory.cc View 1 2 3 4 5 6 1 chunk +0 lines, -83 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M media/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_renderer_factory.h View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_renderer_factory.cc View 1 2 3 4 5 2 chunks +11 lines, -3 lines 0 comments Download
M media/mojo/services/mojo_renderer_impl.h View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_renderer_impl.cc View 1 2 3 4 5 2 chunks +12 lines, -2 lines 0 comments Download
A + media/renderers/video_overlay_factory.h View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -16 lines 1 comment Download
A + media/renderers/video_overlay_factory.cc View 1 2 3 4 5 6 4 chunks +23 lines, -25 lines 0 comments Download
M media/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -9 lines 2 comments Download

Messages

Total messages: 43 (9 generated)
alokp
This is not ready to commit. Sending it out to get feedback on the approach. ...
4 years, 8 months ago (2016-04-11 20:52:07 UTC) #2
xhwang
This CL looks good overall. I think it makes sense to plumb the NaturalSizeChangedCB in ...
4 years, 8 months ago (2016-04-12 19:40:38 UTC) #4
alokp
Xiaohan: Thanks a lot for detailed suggestions. I am on vacation rest of this week. ...
4 years, 8 months ago (2016-04-12 19:48:13 UTC) #5
xhwang
Dale: Do we need this path (or something similar) for the MediaPlayer work as well?
4 years, 8 months ago (2016-04-12 20:02:03 UTC) #6
DaleCurtis
I'm not sure about what we're doing with MediaPlayer yet, +tguilbert in case he wants ...
4 years, 8 months ago (2016-04-12 20:52:42 UTC) #8
alokp
I ran into an issue when mocking media::Pipeline. Now it exceeds 10 arguments supported by ...
4 years, 8 months ago (2016-04-19 00:16:08 UTC) #9
xhwang
I am not seeing a new PS to review :) For exceeding max number of ...
4 years, 8 months ago (2016-04-19 16:20:22 UTC) #10
alokp
On 2016/04/19 16:20:22, xhwang wrote: > I am not seeing a new PS to review ...
4 years, 8 months ago (2016-04-19 16:32:17 UTC) #11
sandersd (OOO until July 31)
On 2016/04/19 16:32:17, alokp wrote: > On 2016/04/19 16:20:22, xhwang wrote: > > I am ...
4 years, 8 months ago (2016-04-19 17:33:15 UTC) #12
alokp
I am going to start defining a PipelineClient in a separate patch. We can look ...
4 years, 8 months ago (2016-04-20 00:02:52 UTC) #13
xhwang
+sandersd: Please see the comment about GetGpuFactoriesCB. dalecurtis: Please see my old comment about whether ...
4 years, 8 months ago (2016-04-20 16:58:48 UTC) #15
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/1873513003/diff/60001/media/mojo/services/mojo_renderer_factory.h File media/mojo/services/mojo_renderer_factory.h (right): https://chromiumcodereview.appspot.com/1873513003/diff/60001/media/mojo/services/mojo_renderer_factory.h#newcode22 media/mojo/services/mojo_renderer_factory.h:22: GpuVideoAcceleratorFactories* gpu_factories, > - Shall we use the callback ...
4 years, 8 months ago (2016-04-20 18:50:06 UTC) #16
DaleCurtis
On 2016/04/12 at 20:02:03, xhwang wrote: > Dale: Do we need this path (or something ...
4 years, 8 months ago (2016-04-20 19:14:02 UTC) #17
xhwang
https://chromiumcodereview.appspot.com/1873513003/diff/60001/media/mojo/services/mojo_renderer_factory.h File media/mojo/services/mojo_renderer_factory.h (right): https://chromiumcodereview.appspot.com/1873513003/diff/60001/media/mojo/services/mojo_renderer_factory.h#newcode22 media/mojo/services/mojo_renderer_factory.h:22: GpuVideoAcceleratorFactories* gpu_factories, On 2016/04/20 18:50:06, sandersd wrote: > > ...
4 years, 8 months ago (2016-04-20 21:33:39 UTC) #18
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/1873513003/diff/60001/media/mojo/services/mojo_renderer_factory.h File media/mojo/services/mojo_renderer_factory.h (right): https://chromiumcodereview.appspot.com/1873513003/diff/60001/media/mojo/services/mojo_renderer_factory.h#newcode22 media/mojo/services/mojo_renderer_factory.h:22: GpuVideoAcceleratorFactories* gpu_factories, On 2016/04/20 21:33:39, xhwang wrote: > > ...
4 years, 8 months ago (2016-04-20 21:48:05 UTC) #19
alokp
On 2016/04/20 21:48:05, sandersd wrote: > https://chromiumcodereview.appspot.com/1873513003/diff/60001/media/mojo/services/mojo_renderer_factory.h > File media/mojo/services/mojo_renderer_factory.h (right): > > https://chromiumcodereview.appspot.com/1873513003/diff/60001/media/mojo/services/mojo_renderer_factory.h#newcode22 > ...
4 years, 8 months ago (2016-04-20 21:59:01 UTC) #20
sandersd (OOO until July 31)
On 2016/04/20 21:59:01, alokp wrote: > On 2016/04/20 21:48:05, sandersd wrote: > > > https://chromiumcodereview.appspot.com/1873513003/diff/60001/media/mojo/services/mojo_renderer_factory.h ...
4 years, 8 months ago (2016-04-20 22:16:11 UTC) #21
alokp
Most of the changes in the original patch have already landed separately: https://codereview.chromium.org/1904793002 https://codereview.chromium.org/1955843002 https://codereview.chromium.org/1978973002 ...
4 years, 7 months ago (2016-05-18 00:07:29 UTC) #22
sandersd (OOO until July 31)
https://codereview.chromium.org/1873513003/diff/120001/media/renderers/video_overlay_factory.cc File media/renderers/video_overlay_factory.cc (right): https://codereview.chromium.org/1873513003/diff/120001/media/renderers/video_overlay_factory.cc#newcode77 media/renderers/video_overlay_factory.cc:77: frame->metadata()->SetBoolean(VideoFrameMetadata::ALLOW_OVERLAY, true); Are the side effects from scheduling the ...
4 years, 7 months ago (2016-05-18 00:47:47 UTC) #23
alokp
https://codereview.chromium.org/1873513003/diff/120001/media/renderers/video_overlay_factory.cc File media/renderers/video_overlay_factory.cc (right): https://codereview.chromium.org/1873513003/diff/120001/media/renderers/video_overlay_factory.cc#newcode77 media/renderers/video_overlay_factory.cc:77: frame->metadata()->SetBoolean(VideoFrameMetadata::ALLOW_OVERLAY, true); On 2016/05/18 00:47:47, sandersd wrote: > Are ...
4 years, 7 months ago (2016-05-18 04:15:02 UTC) #24
sandersd (OOO until July 31)
lgtm https://codereview.chromium.org/1873513003/diff/120001/media/renderers/video_overlay_factory.cc File media/renderers/video_overlay_factory.cc (right): https://codereview.chromium.org/1873513003/diff/120001/media/renderers/video_overlay_factory.cc#newcode77 media/renderers/video_overlay_factory.cc:77: frame->metadata()->SetBoolean(VideoFrameMetadata::ALLOW_OVERLAY, true); On 2016/05/18 04:15:02, alokp wrote: > ...
4 years, 7 months ago (2016-05-18 17:57:09 UTC) #25
alokp
https://codereview.chromium.org/1873513003/diff/120001/media/renderers/video_overlay_factory.cc File media/renderers/video_overlay_factory.cc (right): https://codereview.chromium.org/1873513003/diff/120001/media/renderers/video_overlay_factory.cc#newcode77 media/renderers/video_overlay_factory.cc:77: frame->metadata()->SetBoolean(VideoFrameMetadata::ALLOW_OVERLAY, true); On 2016/05/18 17:57:08, sandersd wrote: > On ...
4 years, 7 months ago (2016-05-18 18:12:48 UTC) #26
alokp
creis: content/
4 years, 7 months ago (2016-05-18 19:16:44 UTC) #28
alokp
Luke: FYI - chromecast HoleFrameFactory is moved into media as VideoOverlayFactory. I have updated CmaRenderer ...
4 years, 7 months ago (2016-05-18 20:53:24 UTC) #30
Charlie Reis
I can't really tell what's going on here in render_frame_impl.cc, but it looks pretty similar ...
4 years, 7 months ago (2016-05-18 21:15:32 UTC) #31
halliwell
https://codereview.chromium.org/1873513003/diff/150001/media/renderers/video_overlay_factory.h File media/renderers/video_overlay_factory.h (right): https://codereview.chromium.org/1873513003/diff/150001/media/renderers/video_overlay_factory.h#newcode27 media/renderers/video_overlay_factory.h:27: // This class must be used on GpuVideoAcceleratorFactories::GetTaskRunner(). This ...
4 years, 7 months ago (2016-05-19 15:47:50 UTC) #32
xhwang
lgtm dalecurtis: Could you please also take a look at the changes related to VideoRendererSink ...
4 years, 7 months ago (2016-05-19 16:36:23 UTC) #33
DaleCurtis
What changes related to VideoRendererSink? I don't see any.
4 years, 7 months ago (2016-05-19 19:17:35 UTC) #34
DaleCurtis
OIC now. Looking.
4 years, 7 months ago (2016-05-19 19:18:04 UTC) #35
DaleCurtis
Eh, this isn't really ideal, but is fine for now since Chromecast is already the ...
4 years, 7 months ago (2016-05-19 19:21:16 UTC) #36
DaleCurtis
Although I'm beginning to think maybe we should just have a single frame paint method ...
4 years, 7 months ago (2016-05-19 19:22:27 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1873513003/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1873513003/150001
4 years, 7 months ago (2016-05-19 19:49:25 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 7 months ago (2016-05-20 00:04:10 UTC) #41
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 00:05:27 UTC) #43
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/16c8e68a20fc00d1c375af94770373d708ef3814
Cr-Commit-Position: refs/heads/master@{#394912}

Powered by Google App Engine
This is Rietveld 408576698