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

Issue 1955843002: Move Renderer permanent callbacks into RendererClient interface. (Closed)

Created:
4 years, 7 months ago by alokp
Modified:
4 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Renderer permanent callbacks into RendererClient interface. We need to move the callbacks for video size and opacity change from VideoFrameCompositor to VideoRenderer. Doing so will exceed the gmock limit of 10 arguments for VideoRenderer::Initialize. This patch moves the callbacks passed in VideoRenderer::Initialize into a RendererClient interface so that additional callbacks can be added. BUG=571155 Committed: https://crrev.com/16bbeea8c7fed2b76b26bb9c7fcee326806514f7 Cr-Commit-Position: refs/heads/master@{#393396}

Patch Set 1 #

Patch Set 2 : updated AudioRenderer #

Patch Set 3 : updates Renderer and PipelineImpl #

Patch Set 4 : updates MojoRendererService #

Patch Set 5 : rebase #

Total comments: 38

Patch Set 6 : addressed comments #

Patch Set 7 : updates unittests #

Patch Set 8 : rebase #

Patch Set 9 : no pointer comparison RendererClientInternal #

Patch Set 10 : updates media::Renderer subclasses #

Total comments: 10

Patch Set 11 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+652 lines, -650 lines) Patch
M chromecast/browser/media/cast_renderer.h View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -8 lines 0 comments Download
M chromecast/browser/media/cast_renderer.cc View 1 2 3 4 5 6 7 8 9 7 chunks +50 lines, -23 lines 0 comments Download
M chromecast/renderer/media/cma_renderer.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -11 lines 0 comments Download
M chromecast/renderer/media/cma_renderer.cc View 1 2 3 4 5 6 7 8 9 8 chunks +13 lines, -23 lines 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M media/base/audio_renderer.h View 1 2 3 4 5 2 chunks +7 lines, -23 lines 0 comments Download
M media/base/mock_filters.h View 1 2 3 4 5 6 4 chunks +23 lines, -21 lines 0 comments Download
M media/base/mock_filters.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/pipeline_impl.h View 1 2 3 4 5 5 chunks +11 lines, -14 lines 0 comments Download
M media/base/pipeline_impl.cc View 1 2 3 4 5 5 chunks +43 lines, -48 lines 0 comments Download
M media/base/pipeline_impl_unittest.cc View 1 2 3 4 5 6 19 chunks +38 lines, -43 lines 0 comments Download
M media/base/renderer.h View 1 2 3 4 5 2 chunks +5 lines, -18 lines 0 comments Download
A media/base/renderer_client.h View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M media/base/video_renderer.h View 1 2 3 4 5 2 chunks +9 lines, -34 lines 0 comments Download
M media/mojo/services/mojo_renderer_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -9 lines 0 comments Download
M media/mojo/services/mojo_renderer_impl.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +8 lines, -15 lines 0 comments Download
M media/mojo/services/mojo_renderer_service.h View 1 2 3 5 chunks +9 lines, -14 lines 0 comments Download
M media/mojo/services/mojo_renderer_service.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +29 lines, -30 lines 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 2 3 4 5 3 chunks +12 lines, -11 lines 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 2 3 4 5 6 7 11 chunks +51 lines, -27 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -19 lines 0 comments Download
M media/renderers/renderer_impl.h View 1 2 3 4 5 6 7 8 6 chunks +13 lines, -18 lines 0 comments Download
M media/renderers/renderer_impl.cc View 1 2 3 4 5 6 7 8 12 chunks +74 lines, -61 lines 0 comments Download
M media/renderers/renderer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 25 chunks +51 lines, -72 lines 0 comments Download
M media/renderers/video_renderer_impl.h View 1 2 3 4 5 4 chunks +12 lines, -13 lines 0 comments Download
M media/renderers/video_renderer_impl.cc View 1 2 3 4 5 11 chunks +53 lines, -25 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 34 chunks +76 lines, -70 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
alokp
I still need to update the unittests. Could you please provide early feedback on the ...
4 years, 7 months ago (2016-05-06 17:53:35 UTC) #2
xhwang
Overall looks good. Here are my first round of comments. Thank you again for working ...
4 years, 7 months ago (2016-05-09 18:13:23 UTC) #3
alokp
https://codereview.chromium.org/1955843002/diff/80001/media/base/audio_renderer.h File media/base/audio_renderer.h (right): https://codereview.chromium.org/1955843002/diff/80001/media/base/audio_renderer.h#newcode34 media/base/audio_renderer.h:34: virtual void Initialize(RendererClient* client, On 2016/05/09 18:13:22, xhwang wrote: ...
4 years, 7 months ago (2016-05-09 21:31:44 UTC) #4
sandersd (OOO until July 31)
I didn't review every single line, but the design and implementation lgtm.
4 years, 7 months ago (2016-05-09 21:44:21 UTC) #5
alokp
I have update all unittests. This is ready land except for replacing the pointer comparison ...
4 years, 7 months ago (2016-05-11 18:21:50 UTC) #6
xhwang
On 2016/05/11 18:21:50, alokp wrote: > I have update all unittests. This is ready land ...
4 years, 7 months ago (2016-05-11 20:10:49 UTC) #7
alokp
> DemuxerStream::Type sgtm. Thanks! DONE.
4 years, 7 months ago (2016-05-11 23:49:10 UTC) #8
xhwang
looking good. One last comment (and some nits): Can we use MockRendererClient where applicable? https://chromiumcodereview.appspot.com/1955843002/diff/80001/media/renderers/renderer_impl_unittest.cc ...
4 years, 7 months ago (2016-05-12 20:51:19 UTC) #9
alokp
https://codereview.chromium.org/1955843002/diff/180001/media/mojo/services/mojo_renderer_impl.cc File media/mojo/services/mojo_renderer_impl.cc (right): https://codereview.chromium.org/1955843002/diff/180001/media/mojo/services/mojo_renderer_impl.cc#newcode34 media/mojo/services/mojo_renderer_impl.cc:34: // See http://crbug.com/585287 On 2016/05/12 20:51:18, xhwang wrote: > ...
4 years, 7 months ago (2016-05-12 21:46:51 UTC) #10
xhwang
lgtm
4 years, 7 months ago (2016-05-12 21:48:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955843002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955843002/200001
4 years, 7 months ago (2016-05-12 21:59:39 UTC) #14
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 7 months ago (2016-05-12 23:32:49 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 23:33:51 UTC) #17
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/16bbeea8c7fed2b76b26bb9c7fcee326806514f7
Cr-Commit-Position: refs/heads/master@{#393396}

Powered by Google App Engine
This is Rietveld 408576698