| commit | 01c91250ca10720f1a4dbb5110e279277686b722 | [log] [tgz] |
|---|---|---|
| author | wutao <wutao@chromium.org> | Fri Oct 30 21:25:52 2020 |
| committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 30 21:25:52 2020 |
| tree | de13d071b85ba9d9b39c308b6d3d77d7bb723455 | |
| parent | d9065f9b15c6dd3cdda2310e60a7b7add9ef9b62 [diff] |
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}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.