Fix upside-down host desktop after resize.

This CL improves the "best mode" selection logic to take into account
the initial as well as the current orientation and frequency, preferring
the initial values for both where available.

Bug: 1140756
Change-Id: I1497df10d718ec5b297dc88c7f69694bc977fef3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2487877
Commit-Queue: Jamie Walch <[email protected]>
Reviewed-by: Joe Downing <[email protected]>
Cr-Commit-Position: refs/heads/master@{#820859}
1 file changed