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

Issue 1784173005: Request a GpuVideoAcceleratorFactories when constructing decoders. (Closed)

Created:
4 years, 9 months ago by sandersd (OOO until July 31)
Modified:
4 years, 9 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Request a GpuVideoAcceleratorFactories when constructing decoders. This simple change allows us to continue to create working hardware decoders after a context lost while playback is suspended. (Which is of particular interest because this can happen while backgrounded on Android.) Details: Instead of passing a GpuVideoAcceleratorFactories to the DefaultRendererFactory, and thus always using the same one for a given media player instance, pass a getter callback instead. Now DefaultRendererFactory can get the latest GpuVideoAcceleratorFactories instance each time a VideoDecoder is constructed. BUG=580386 Committed: https://crrev.com/0c2f582f1c68259ea17d2e95141fa0452ca7ceb4 Cr-Commit-Position: refs/heads/master@{#381044}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : const GetGpuFactoriesCB #

Patch Set 4 : Rebase and update unittest. #

Patch Set 5 : Update test_mojo_media_client.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -18 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M media/mojo/services/test_mojo_media_client.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M media/renderers/default_renderer_factory.h View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M media/renderers/default_renderer_factory.cc View 1 2 3 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
sandersd (OOO until July 31)
4 years, 9 months ago (2016-03-11 22:28:31 UTC) #2
DaleCurtis
lgtm, but +dcastagna@ in case I'm missing something here. https://codereview.chromium.org/1784173005/diff/20001/media/renderers/default_renderer_factory.h File media/renderers/default_renderer_factory.h (right): https://codereview.chromium.org/1784173005/diff/20001/media/renderers/default_renderer_factory.h#newcode31 media/renderers/default_renderer_factory.h:31: ...
4 years, 9 months ago (2016-03-11 23:46:20 UTC) #5
DaleCurtis
lgtm, but +dcastagna@ in case I'm missing something here. https://codereview.chromium.org/1784173005/diff/20001/media/renderers/default_renderer_factory.h File media/renderers/default_renderer_factory.h (right): https://codereview.chromium.org/1784173005/diff/20001/media/renderers/default_renderer_factory.h#newcode31 media/renderers/default_renderer_factory.h:31: ...
4 years, 9 months ago (2016-03-11 23:46:20 UTC) #6
sandersd (OOO until July 31)
https://codereview.chromium.org/1784173005/diff/20001/media/renderers/default_renderer_factory.h File media/renderers/default_renderer_factory.h (right): https://codereview.chromium.org/1784173005/diff/20001/media/renderers/default_renderer_factory.h#newcode31 media/renderers/default_renderer_factory.h:31: base::Callback<GpuVideoAcceleratorFactories*()> get_gpu_factories_cb, On 2016/03/11 23:46:20, DaleCurtis wrote: > const&? ...
4 years, 9 months ago (2016-03-11 23:56:22 UTC) #7
sandersd (OOO until July 31)
jochen@chromium.org: Please review changes in content/renderer
4 years, 9 months ago (2016-03-11 23:56:37 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1784173005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1784173005/40001
4 years, 9 months ago (2016-03-12 00:00:50 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/194494)
4 years, 9 months ago (2016-03-12 00:14:58 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1784173005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1784173005/60001
4 years, 9 months ago (2016-03-12 00:28:14 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/143531)
4 years, 9 months ago (2016-03-12 00:50:33 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1784173005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1784173005/80001
4 years, 9 months ago (2016-03-12 00:52:59 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-12 04:39:22 UTC) #21
Daniele Castagna
The patch LGTM. I think the alias GetGpuFactoriesCB = base::Callback<GpuVideoAcceleratorFactories*()>; can be a little bit ...
4 years, 9 months ago (2016-03-13 23:40:55 UTC) #22
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-14 14:24:45 UTC) #23
sandersd (OOO until July 31)
On 2016/03/13 23:40:55, Daniele Castagna wrote: > The patch LGTM. > > I think the ...
4 years, 9 months ago (2016-03-14 18:25:42 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1784173005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1784173005/80001
4 years, 9 months ago (2016-03-14 18:26:08 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-14 19:39:56 UTC) #28
commit-bot: I haz the power
4 years, 9 months ago (2016-03-14 19:41:10 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0c2f582f1c68259ea17d2e95141fa0452ca7ceb4
Cr-Commit-Position: refs/heads/master@{#381044}

Powered by Google App Engine
This is Rietveld 408576698