commit | 6fae0406c7093fb0ea5d53fd9e9c7f76b3a3fa4a | [log] [tgz] |
---|---|---|
author | Ahmed Fakhry <afakhry@chromium.org> | Thu May 05 17:27:14 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 05 17:27:14 2022 |
tree | 713f9c0d4cfe599bdf1666c666deedc0bc3666eb | |
parent | 81e9e3ff5b4e6eac4dcc954f6ae8fcf5d671c856 [diff] |
capture_mode_projector: Fix broken annotation on non-primary displays The RecordingOverlayWidget which hosts the annotation surface used to always get created on the primary display. That was because we relied on the setting the bounds in its parent's coordinates system assuming that the parenting is correct. However, if the parent is the menu container (which uses the screen coordinates system to set the bounds on its children), we must use screen coordinates on the overlay widget. This CL fixes this issue. Demo of the before and after can be found on the bug. Fixed: 1322655 Test: Manually, added a test that fails without the fix. Change-Id: I8f3fcaadc8c92ce576dbdbd0fdcef28721f44580 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3628591 Commit-Queue: Ahmed Fakhry <afakhry@chromium.org> Reviewed-by: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/main@{#999952}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
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.
If you found a bug, please file it at https://crbug.com/new.