summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorEvan Rosky <erosky@google.com>2020-11-19 20:20:53 -0800
committerEvan Rosky <erosky@google.com>2020-11-23 11:02:08 -0800
commit2da185d516d4441f0ea6aab4e42ea77845607fc9 (patch)
tree90e7be8f1be2b6b2e0d46a59d3e08f962d7d4256 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent961f737505c854b783de6e08b1c5d49e64f143e3 (diff)
Don't updateSurfacePosition with invalid window frames
updateSurfacePosition runs pretty frequently (during configuration update). However, the WindowState override relies on mWindowFrames which is calculated during layout. This means that surface positions are frequently calculated with out-of-date mWindowFrames (most commonly when the onConfigurationChange cascade is called). This can easily cause visible glitching based on the timings of SFTransaction applications -- particularly when mixed with syncTransactions since those aren't serialized with layout. This CL prevents WindowState's updateSurfacePosition from running when layout is deferred or when the window is goneForLayout. Bug: 169035082 Test: With new split-screen transitions, launch a non-resizable task while in split-screen and observe that home surface doesn't get repositioned incorrectly. Change-Id: If35fb3560eed83fe1c944a1cb7cbb685f58a3b90
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions