summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2024-03-08 15:09:45 +0000
committer Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2024-03-08 18:41:19 +0000
commit2b8b6f23c4cd7af2ef2ab9cd6aed3f8d4067af54 (patch)
treedec37d4392db8fd73a14e0691e0741acaf78ef18 /libs/hwui/FrameInfoVisualizer.cpp
parent6ce00f979e5bd69851967f48371807b6bc2b56e3 (diff)
Replace desktop mode screen size check with config property flag
The screen layout of a device can be modified by the user through setting a higher or lower density, meaning the screen layout size can change from the default value making it an unreliable gate. Calculating the screen size in inches using the window metrics was also explored but did not result in accureate values given current APIs and thus is also an unreliable gate. Instead introduce a new config property flag, to gate the feature, which represents whether a device supports desktop mode. By default this will be false but set to true in the config of supported devices. Bug: 326957646 Fixes: 328684732 Test: atest WMShellUnitTests:DesktopModeWindowDecorViewModelTests Test: atest WMShellUnitTests:DesktopTasksControllerTest Change-Id: I54329693746c6cb44ea4a54a6de00b33f9bc0a9c
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions