diff options
| author | 2024-04-30 19:58:04 +0800 | |
|---|---|---|
| committer | 2024-04-30 20:05:07 +0800 | |
| commit | daf8921dbdbaa960583974501b774dc34469fbc0 (patch) | |
| tree | 6951dddd90127f0214e0f79ec4cba109f99f8a22 /libs/input/SpriteController.cpp | |
| parent | b94064952b8993562945e292fe52570b76780f49 (diff) | |
Make default orientation of window container unset
The UNSPECIFIED is also a kind of provided orientation. If a
window container doesn't provide orientation, it should return
UNSET instead. As the implementation getOrientation of various
container, e.g. ActivityRecord, TaskFragment, DisplayArea, which
return UNSET if it can not decide the orientation. And the
UNSET will be reported as UNSPECIFIED in DisplayContent.
This could speed up a bit when traversing WindowContainer#
getOrientation that skips UNSET directly.
Bug: 163976519
Test: testGetOrientation_childSpecified
Change-Id: Iec067673e48dab559f5976f15d3e6524e0657b44
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions