diff options
author | 2025-01-23 16:08:26 +0000 | |
---|---|---|
committer | 2025-01-27 18:26:12 +0000 | |
commit | 67c532351309cc1e8c37d6c8bf0a020f6e779e67 (patch) | |
tree | 7f8caf055d90ecfe123cc58fb94ee7a9f39c6ed7 /include | |
parent | bdb3bc4f121e6a6c899ef38222f980ed6f27fb22 (diff) |
DisplayTopologyGraph offset in dp and store densities
Bug: 384668407
Bug: 362719483
Flag: com.android.server.display.feature.flags.display_topology
Test: m
Change-Id: I6d398b3af6609b0774b34e4b3f80e3afc136ed7c
Diffstat (limited to 'include')
-rw-r--r-- | include/input/DisplayTopologyGraph.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/input/DisplayTopologyGraph.h b/include/input/DisplayTopologyGraph.h index 90427bd76d..f3f5148540 100644 --- a/include/input/DisplayTopologyGraph.h +++ b/include/input/DisplayTopologyGraph.h @@ -43,7 +43,7 @@ enum class DisplayTopologyPosition : int32_t { struct DisplayTopologyAdjacentDisplay { ui::LogicalDisplayId displayId = ui::LogicalDisplayId::INVALID; DisplayTopologyPosition position; - float offsetPx; + float offsetDp; }; /** @@ -52,6 +52,7 @@ struct DisplayTopologyAdjacentDisplay { struct DisplayTopologyGraph { ui::LogicalDisplayId primaryDisplayId = ui::LogicalDisplayId::INVALID; std::unordered_map<ui::LogicalDisplayId, std::vector<DisplayTopologyAdjacentDisplay>> graph; + std::unordered_map<ui::LogicalDisplayId, int> displaysDensity; }; } // namespace android |