summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-06-03 11:20:39 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-06-04 02:28:42 +0000
commitc85f1ba357e82be4d65db5f268f085f21b8e3fac (patch)
tree29baa4dfd4af3114b70e64874cd5a97b86d93d1f /libs/androidfw/StringPool.cpp
parentdf5244aa7acd1e758f9e856657a41a118487c739 (diff)
Pause surface position for bounds change transaction
Currently the entering pip bounds is applied at the end of enter animation. There could be 2 flickering cases: 1. There is an offset from display cutout while the activity is fullscreen. The offset should be gone once the task no longer overlap with display cutout. But the position change applies before the app redraws. Which looks like shift left and then right in a short time. 2. Before the window frame is recomputed, the surface position is updated with pip bounds, e.g. (0,0)-(200,1000)=(-200,-1000). So this change updates the window surface position until the app has reported its draw transaction, and then applies them at once. Replaced mResizedWhileGone because it was never read for a long time. Bug: 331315278 Test: Assume the target app support auto-pip and it doesn't draw under display cutout. E.g. LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES Enter PiP from 90 degrees to home with 0 degrees. The pip content won't shift horizontally a few frames. Change-Id: I1cd79ccb05ac61edf37dffbbec8cfe37cb85b1f3
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions