summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Chavi Weingarten <chaviw@google.com> 2023-10-11 20:29:59 +0000
committer Chavi Weingarten <chaviw@google.com> 2023-10-11 20:34:02 +0000
commitb74093a642c7d2e3f169f78ce5665eb93e8d552f (patch)
treee254777971f011f658934916a53bef011f84469c /libs/ultrahdr/jpegencoderhelper.cpp
parent622d804019fb9576828ba95aba986948fad7fe22 (diff)
Store isTrustedOverlay before returning early for hidden layers.
When a layer is hidden, we will still gather input info, but not continue down the updateSnapshot method. Extracting isTrustedOverlay was happening after so if the caller was a hidden spy window that also was a trusted overlay, it would crash InputDispatcher since it would receive the hidden windowInfo data with spy but not trusted overlay. This fix moves the isTrustedOverlay extraction before the hidden check so input info will contain trusted overlay info even if the window was hidden Test: LayerSnapshotTest#setTrustedOverlayForNonVisibleInput Fixes: 304391559 Change-Id: Ie068c179635998e189814448062d86db0b089f40
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions