diff options
author | 2024-02-23 22:22:18 +0000 | |
---|---|---|
committer | 2024-02-23 22:22:20 +0000 | |
commit | aa2077038093f0283809adcb5c89d35674669d91 (patch) | |
tree | d09a8b3a8fc8b1668aa181f352e8f275ad3ae432 | |
parent | c7c3ed1b50083e2150731f6e58955032e774c94e (diff) |
Format WindowInfo dump
Bug: 26029576
Change-Id: I234e811f367fca2aa6f678cea2a94885575df67e
Test: presubmit
-rw-r--r-- | libs/gui/WindowInfo.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/gui/WindowInfo.cpp b/libs/gui/WindowInfo.cpp index 9429d2cc15..86bf0ee745 100644 --- a/libs/gui/WindowInfo.cpp +++ b/libs/gui/WindowInfo.cpp @@ -262,8 +262,6 @@ void WindowInfoHandle::updateFrom(sp<WindowInfoHandle> handle) { } std::ostream& operator<<(std::ostream& out, const WindowInfo& info) { - std::string transform; - info.transform.dump(transform, "transform", " "); out << "name=" << info.name << ", id=" << info.id << ", displayId=" << info.displayId << ", inputConfig=" << info.inputConfig.string() << ", alpha=" << info.alpha << ", frame=[" << info.frame.left << "," << info.frame.top << "][" << info.frame.right << "," @@ -274,9 +272,11 @@ std::ostream& operator<<(std::ostream& out, const WindowInfo& info) { << ", ownerUid=" << info.ownerUid.toString() << ", dispatchingTimeout=" << std::chrono::duration_cast<std::chrono::milliseconds>(info.dispatchingTimeout).count() << "ms, token=" << info.token.get() - << ", touchOcclusionMode=" << ftl::enum_string(info.touchOcclusionMode) << "\n" - << transform; - if (info.canOccludePresentation) out << " canOccludePresentation"; + << ", touchOcclusionMode=" << ftl::enum_string(info.touchOcclusionMode); + if (info.canOccludePresentation) out << ", canOccludePresentation"; + std::string transform; + info.transform.dump(transform, "transform", " "); + out << "\n" << transform; return out; } |