Use kOnDemand for MediaStream if player starts in PIP.
This fixes SurfaceLayer kOnDemand mode to work with webmediaplayer_ms when the player starts in PIP. Previously, the player wouldn't use SurfaceLayer, since it would wait to enter PIP. Now, it checks if the client is already in PIP, and switches to SurfaceLayer immediately in kOnDemand mode. Bug: 891619 Change-Id: I669003b512152cc22c3e0d1f7d69133304669108 Reviewed-on: https://chromium-review.googlesource.com/c/1301958Reviewed-by:Emircan Uysaler <emircan@chromium.org> Commit-Queue: Frank Liberato <liberato@chromium.org> Cr-Commit-Position: refs/heads/master@{#603577}
Showing
Please register or sign in to comment