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

Issue 783003002: Introduce media::RendererFactory interface. (Closed)

Created:
6 years ago by xhwang
Modified:
6 years ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, Aaron Boodman, nasko+codewatch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, darin (slow to review), ben+mojo_chromium.org, viettrungluu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Introduce media::RendererFactory interface. This class is in charge of creating media::Renderer to be used by the meida pipeline. Benefits of this CL: - We have a central place for media::Renderer creation. - WebMediaPlayerImpl is much cleaner. - Creation of MojoRendererImpl is delayed from construction time to load time. BUG=416570 TEST=Existing tests pass. Committed: https://crrev.com/6fa3562066174193f79777ed9c6e589a9ca4c434 Cr-Commit-Position: refs/heads/master@{#307808}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : comments addressed #

Patch Set 5 : Drop ExternalRendererCreationCB. #

Patch Set 6 : Fix html_viewer #

Total comments: 11

Patch Set 7 : comments addressed #

Total comments: 8

Patch Set 8 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -142 lines) Patch
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 2 chunks +4 lines, -6 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 4 chunks +15 lines, -12 lines 0 comments Download
M media/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A media/base/renderer_factory.h View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A + media/base/renderer_factory.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 4 chunks +3 lines, -9 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 9 chunks +6 lines, -62 lines 0 comments Download
M media/blink/webmediaplayer_params.h View 4 chunks +3 lines, -19 lines 0 comments Download
M media/blink/webmediaplayer_params.cc View 1 chunk +0 lines, -5 lines 0 comments Download
A media/filters/default_renderer_factory.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A media/filters/default_renderer_factory.cc View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download
M media/media.gyp View 1 3 chunks +6 lines, -0 lines 0 comments Download
M media/mojo/services/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_renderer_factory.h View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_renderer_factory.cc View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
M mojo/services/html_viewer/webmediaplayer_factory.cc View 1 2 3 4 5 6 2 chunks +16 lines, -21 lines 0 comments Download

Messages

Total messages: 35 (5 generated)
xhwang
dalecurtis: Please review everything. scherkus: Please skim the RendererFactory API and naming.
6 years ago (2014-12-08 18:09:28 UTC) #2
DaleCurtis
Can you elaborate on your choice of an inheritance pattern versus having a single RendererFactory ...
6 years ago (2014-12-08 22:12:09 UTC) #3
xhwang
On 2014/12/08 22:12:09, DaleCurtis wrote: > Can you elaborate on your choice of an inheritance ...
6 years ago (2014-12-08 22:54:40 UTC) #4
xhwang
https://codereview.chromium.org/783003002/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/783003002/diff/40001/content/renderer/render_frame_impl.cc#newcode1785 content/renderer/render_frame_impl.cc:1785: base::Bind(&ContentRendererClient::CreateMediaRenderer, Now I feel it makes more sense to ...
6 years ago (2014-12-08 22:58:40 UTC) #5
xhwang
comments addressed
6 years ago (2014-12-08 23:27:10 UTC) #6
xhwang
https://codereview.chromium.org/783003002/diff/40001/media/filters/default_renderer_factory.cc File media/filters/default_renderer_factory.cc (right): https://codereview.chromium.org/783003002/diff/40001/media/filters/default_renderer_factory.cc#newcode21 media/filters/default_renderer_factory.cc:21: // TODO(xhwang): We are abusing CreateMediaSourceErrorEvent() in a lot ...
6 years ago (2014-12-08 23:44:09 UTC) #7
DaleCurtis
I like it. lgtm
6 years ago (2014-12-09 00:37:18 UTC) #8
xhwang
6 years ago (2014-12-09 03:55:09 UTC) #10
xhwang
jamesr: Please OWNERS review mojo/services/html_viewer/webmediaplayer_factory.cc. jam: Please OWNERS review content/*
6 years ago (2014-12-09 03:57:13 UTC) #12
xhwang
gunsch: Please also take a look at the change in content/public/renderer/content_renderer_client.h.
6 years ago (2014-12-09 04:14:27 UTC) #14
jamesr
mojo/services/html_viewer lgtm https://codereview.chromium.org/783003002/diff/100001/mojo/services/html_viewer/webmediaplayer_factory.cc File mojo/services/html_viewer/webmediaplayer_factory.cc (right): https://codereview.chromium.org/783003002/diff/100001/mojo/services/html_viewer/webmediaplayer_factory.cc#newcode76 mojo/services/html_viewer/webmediaplayer_factory.cc:76: media_log, GetMediaThreadTaskRunner(), compositor_task_runner_, NULL); nullptr
6 years ago (2014-12-09 04:25:01 UTC) #15
gunsch
lgtm from Chromecast side, I think the new combination of ContentRendererClient/MediaRendererFactory is cleaner than before ...
6 years ago (2014-12-09 04:26:09 UTC) #16
jam
https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h#newcode261 content/public/renderer/content_renderer_client.h:261: virtual scoped_ptr<media::RendererFactory> GetMediaRendererFactory( On 2014/12/09 04:26:09, gunsch wrote: > ...
6 years ago (2014-12-09 17:14:19 UTC) #17
xhwang
comments addressed
6 years ago (2014-12-09 17:48:33 UTC) #18
xhwang
https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h#newcode261 content/public/renderer/content_renderer_client.h:261: virtual scoped_ptr<media::RendererFactory> GetMediaRendererFactory( On 2014/12/09 04:26:09, gunsch wrote: > ...
6 years ago (2014-12-09 18:05:52 UTC) #19
gunsch
https://codereview.chromium.org/783003002/diff/100001/media/filters/default_renderer_factory.h File media/filters/default_renderer_factory.h (right): https://codereview.chromium.org/783003002/diff/100001/media/filters/default_renderer_factory.h#newcode20 media/filters/default_renderer_factory.h:20: class MEDIA_EXPORT DefaultRendererFactory : public RendererFactory { On 2014/12/09 ...
6 years ago (2014-12-09 18:08:29 UTC) #20
scherkus (not reviewing)
lgtm w/ some nits & q's https://codereview.chromium.org/783003002/diff/120001/content/public/renderer/content_renderer_client.cc File content/public/renderer/content_renderer_client.cc (right): https://codereview.chromium.org/783003002/diff/120001/content/public/renderer/content_renderer_client.cc#newcode174 content/public/renderer/content_renderer_client.cc:174: return scoped_ptr<media::RendererFactory>(); nullptr? ...
6 years ago (2014-12-09 22:44:28 UTC) #21
xhwang
comments addressed
6 years ago (2014-12-09 23:11:21 UTC) #22
xhwang
https://codereview.chromium.org/783003002/diff/120001/content/public/renderer/content_renderer_client.cc File content/public/renderer/content_renderer_client.cc (right): https://codereview.chromium.org/783003002/diff/120001/content/public/renderer/content_renderer_client.cc#newcode174 content/public/renderer/content_renderer_client.cc:174: return scoped_ptr<media::RendererFactory>(); On 2014/12/09 22:44:28, scherkus wrote: > nullptr? ...
6 years ago (2014-12-09 23:12:04 UTC) #23
xhwang
jam: kindly ping...
6 years ago (2014-12-10 04:42:40 UTC) #24
jam
https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h#newcode261 content/public/renderer/content_renderer_client.h:261: virtual scoped_ptr<media::RendererFactory> GetMediaRendererFactory( On 2014/12/09 18:05:51, xhwang wrote: > ...
6 years ago (2014-12-10 20:14:46 UTC) #25
xhwang
https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h#newcode261 content/public/renderer/content_renderer_client.h:261: virtual scoped_ptr<media::RendererFactory> GetMediaRendererFactory( On 2014/12/10 20:14:46, jam wrote: > ...
6 years ago (2014-12-10 20:22:55 UTC) #26
jam
On 2014/12/10 20:22:55, xhwang wrote: > https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h > File content/public/renderer/content_renderer_client.h (right): > > https://codereview.chromium.org/783003002/diff/100001/content/public/renderer/content_renderer_client.h#newcode261 > ...
6 years ago (2014-12-10 21:54:50 UTC) #27
xhwang
> the factory could be global and the factory method could take a renderframe > ...
6 years ago (2014-12-10 22:05:11 UTC) #28
gunsch
On 2014/12/10 22:05:11, xhwang wrote: > > the factory could be global and the factory ...
6 years ago (2014-12-10 22:51:32 UTC) #29
jam
On 2014/12/10 22:51:32, gunsch wrote: > On 2014/12/10 22:05:11, xhwang wrote: > > > the ...
6 years ago (2014-12-10 23:20:33 UTC) #30
xhwang
On 2014/12/10 23:20:33, jam wrote: > On 2014/12/10 22:51:32, gunsch wrote: > > On 2014/12/10 ...
6 years ago (2014-12-10 23:22:59 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/783003002/140001
6 years ago (2014-12-10 23:24:55 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years ago (2014-12-11 00:44:28 UTC) #34
commit-bot: I haz the power
6 years ago (2014-12-11 00:46:00 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/6fa3562066174193f79777ed9c6e589a9ca4c434
Cr-Commit-Position: refs/heads/master@{#307808}

Powered by Google App Engine
This is Rietveld 408576698