Skip to content

Commit

Permalink
debug: Add scale info to WindowHierarchy logs in ash debug shortcuts
Browse files Browse the repository at this point in the history
Bug: 1478067
Change-Id: I24457be614ed092c169c95a0d5b242228f77ebd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4835197
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Commit-Queue: Eriko Kurimoto <elkurin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1192594}
  • Loading branch information
elkurin authored and Chromium LUCI CQ committed Sep 5, 2023
1 parent 6147d6f commit 5113507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ash/debug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ void PrintWindowHierarchy(const aura::Window* active_window,
window->GetOcclusionState()))
.c_str()
: "")
<< " " << window->bounds().ToString();
<< " " << window->bounds().ToString()
<< " scale=" + window->transform().To2dScale().ToString();
if (!subpixel_position_offset.IsZero())
*out << " subpixel offset=" + subpixel_position_offset.ToString();
std::string* tree_id = window->GetProperty(ui::kChildAXTreeID);
Expand Down

0 comments on commit 5113507

Please sign in to comment.