Fix Picture-in-Picture window resize

This CL makes sure min and max sizes of the Picture-in-Picture window
adhere to the aspect ratio of the video before applying resize
algorithm. This wasn't the case before which may cause some unexpected

Bug: 924938
Change-Id: Id785ce863051b1694451497424d0e94b16cda8f9
Auto-Submit: François Beaufort <>
Reviewed-by: Mounir Lamouri <>
Commit-Queue: François Beaufort <>
Cr-Original-Commit-Position: refs/heads/master@{#627546}(cherry picked from commit 13df529ae56f4319392e222acb1359c8341e643a)
Reviewed-by: François Beaufort <>
Cr-Commit-Position: refs/branch-heads/3683@{#105}
Cr-Branched-From: e51029943e0a38dd794b73caaf6373d5496ae783-refs/heads/master@{#625896}
1 file changed