summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Patrick Williams <pdwilliams@google.com> 2023-03-31 10:59:10 -0500
committer Patrick Williams <pdwilliams@google.com> 2023-04-14 13:36:47 -0500
commit1caf3b7d82024c9814b5ca41b144c193ade5da26 (patch)
tree5b41a9a05934f87f8d31342bbaf565e0ebdb72e2 /libs/ultrahdr/jpegencoderhelper.cpp
parent29b38f3b2de0e376c7b8c46108bc0f7498032565 (diff)
SF: throttle WindowInfosListener calls
This change updates WindowInfosListenerInvoker to delay and drop messages when there are unacked messages. When WindowInfosListener calls are acknowledged before the next windowInfosChanged call, there is no behavior change. If windowInfosChanged is called and there are unacked messages, then the update is delayed and sent once the messages are acked via WindowInfosReportedListener. If windowInfosChanged is called and there is already a delayed update, then the previous delayed update is overwritten and only the latest update is sent. WindowInfosListeners are still called immediately when there are focus requests. This means the number of unacked messages may be greater than one. This reverts commit 1234a337651a79d492b6c453eb7f4cf30ec341cf. Bug: 270894765 Test: presubmits Test: manual fuzz testing (random sleeps added to input flinger listener) Change-Id: If43b7ab91e05df863e9e6ac51b0bbd36cabe85d7
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions