summaryrefslogtreecommitdiff
path: root/libs/hwui/JankTracker.cpp
diff options
context:
space:
mode:
author Nick Chameyev <nickchameyev@google.com> 2024-03-05 16:54:45 +0000
committer Nick Chameyev <nickchameyev@google.com> 2024-03-05 16:59:26 +0000
commitee512f06bae619d3aa5c52a37da6f6b3ec3ea79e (patch)
treef61bb2750e6b90c8613938be06f3bce2f7696032 /libs/hwui/JankTracker.cpp
parent67bf528527b5e27d4eeaed0c4c9e11f433c68acd (diff)
Use DisplayInfo rotation instead of Display#getRotation in BookStyleClosedStatePredicate
Display#getRotation could be stale as it depends on the context resources/configuration which could be deferred. onDisplayChanged callback only notifies about updates in DisplayInfo, so it doesn't notify about the configuration change update, so BookStyleClosedStatePredicate could end up with a stale rotation value. This change updates querying of the rotation to DisplayInfo's rotation field instead. Test: manual rotate => check logs, try to enter wedge mode Test: atest BookStyleDeviceStatePolicyTest Bug: 326802066 Change-Id: I89514a383f5627e92b83dca110d9f850a0bb8397
Diffstat (limited to 'libs/hwui/JankTracker.cpp')
0 files changed, 0 insertions, 0 deletions