Chromium Code Reviews
DescriptionRequest 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 #
Messages
Total messages: 30 (13 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||