summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-12-21 18:41:44 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-12-26 22:04:23 +0800
commitc3c3f139805915fac8e8b0be9d65dbef1f8341fe (patch)
tree28d8acdd900778ab50cc1826da6d19777b693018 /libs/androidfw/FileStream.cpp
parentbc1d6d5dd76bf2bf86224e197d69c7a4db528c0f (diff)
Avoid redundant post message from WindowStateResizeItem
ClientTransactionItem is already run on main thread. If the UI thread also uses main thread, it is unnecessary to post. Otherwise it may cause flicker/overhead when handling a ClientTransaction with multiple items: ConfigItem -> request draw ResizeItem -> post message (dispatchResized) -> The draw request from ConfigItem is executed. That becomes an additional frame with intermediate state. Resize message -> request draw (handleResized) -> draw again with the latest state Bug: 298203767 Bug: 312457036 Test: Enable windowStateResizeItemFlag. Expand notification shade and rotate device. Change-Id: I561335ced4e13355df233f3921b9453d3bf7196c
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions