commit | c6b0f1086062d2949eae1c6c4446050db4273195 | [log] [tgz] |
---|---|---|
author | Alexander Dunaev <adunaev@igalia.com> | Mon Jun 10 08:28:04 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jun 10 08:28:04 2019 |
tree | 0e98b4cc6fae632db9cbac53bfb283ccf4521eff | |
parent | 00b3f9e7180177834906bfa00d06dab9489c57b7 [diff] |
[ozone/wayland] Added HiDPI support for Ozone/Wayland. Wayland operates in DIP but the platform level works with physical pixels so it's the application's responsibility to render properly and translate locations and sizes to physical pixels and back. This CL introduces the behaviour required to support HiDPI screens: * The backing buffer now takes the scale factor taken from the output device. * Windows update their buffer scale when moved between displays that have different scale factor, or when properties of the display are changed. * Windows translate DIP to physical pixels and back, where necessary. R=msisov@igalia.com, rjkroege@chromium.org Bug: 910797 Change-Id: I1acb96ebc306194c13865149e026bcfdfb8046bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1647154 Reviewed-by: Maksim Sisov <msisov@igalia.com> Reviewed-by: Robert Kroeger <rjkroege@chromium.org> Commit-Queue: Alexander Dunaev <adunaev@igalia.com> Cr-Commit-Position: refs/heads/master@{#667537}
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 .