summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-05-06 21:50:10 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-05-07 20:59:16 +0800
commitadaa572912e29a8d7cc4c94d7af75a8e8915ce90 (patch)
treef0d16864ab148579eed6a6cebe2b5469a0b666ae /libs/androidfw/StringPool.cpp
parenta8f99519ab3fec77352f506c62c057e480ae90af (diff)
Reduce unnecessary sync redraw without changes
If a window was drawn and its parent container's prepareSync is called, the window will always redraw even if there is nothing change to it. For example, when cold launching an activity in a different orientation, the app window and starting window can be drawn first and then display updates. The prepareSync from display will request the 2 windows redraw but the windows already have the latest state. In general, prepareSync is usually called before knowing whether there will be a change. Then updateResizingWindowIfNeeded can give a chance to filter necessary redraw request. Bug: 231435331 Bug: 297493149 Test: atest WindowStateTests#testRequestResizeForBlastSync Change-Id: Id9134e7c71d37357d39d864b3d502ba5bdaebdc2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions