ambient: Fix scaling photos
For paired portrait photos, server returns image with half screen width, and screen height. We used to assume the returned image is portrait as well in order to tile them. However, for ultra wide screen, the image size could be landscape. In this patch, we remove the portrait size limitation to tile two images. This patch also mitigates the scaling issue when device is in portrait orientation. Previously we request width of portrait screen, and server returns the half width, which is too small and causes the displayed image blurry. To reduce the effect, we always send the landscape screen size to the server. Bug: b/171992309 Test: manual Change-Id: I09c065032d7ec92549ea0eb441319cb98f97c84e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2509008 Commit-Queue: Tao Wu <wutao@chromium.org> Reviewed-by:Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/master@{#822816}
Showing
Please register or sign in to comment