Descriptionmedia: Pass DemuxerStreamProvider in Renderer::Initialize().
Currently DemuxerStreamProvider is passed in the constructor of Renderer
implementations (e.g. RendererImpl and MojoRendererImpl). However, if we want to
create the Renderer earlier and pass it to WebMediaPlayerImpl or Pipeline, the
DemuxerStreamProvider may not be available yet. Meanwhile, when Renderer is
initialized by the Pipeline, DemuxerStreamProvider is always available.
This CL moves the DemuxerStreamProvider parameter to Renderer::Initialize() to
accommodate the above cases.
BUG=416570
TEST=Unit tests updated.
Committed: https://crrev.com/abd95fd44fb0b36b06fa3a84f39472cff4d6386a
Cr-Commit-Position: refs/heads/master@{#298006}
Patch Set 1 #Patch Set 2 : fix mojo test #Patch Set 3 : rebase only #
Messages
Total messages: 8 (2 generated)
|