diff options
author | Vishnu Nair <vishnun@google.com> | 2021-02-09 12:54:16 -0800 |
---|---|---|
committer | Vishnu Nair <vishnun@google.com> | 2021-02-09 15:11:17 -0800 |
commit | 5f6772539d5277ae3e55f3969c196746f1b930a2 (patch) | |
tree | 94365a16a7ca4e9c8e9806d7a2d5704e643d40cb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | b610667bfd88681a2c089150315f8e4eedd3691e (diff) |
Fix SurfaceView background layer leaks
The background layer was parented to the root sv layer but in blast
when recreating the sv surface, we were only cleaning up the blast
surface. This would leak the root container layer and the background
color layer that was parented to it.
Instead with blast enabled, we keep both the root and the blast layer
alive. If the surface needs to be recreated, we only recreate the
BlastBufferQueue adapter. This also simplifies the preserve old surface
logic because we no longer need to track the old surface control. The
blast layer will continue presenting the buffer from the old BBQ.
Test: -1 screen with video, check we are not leaking background layers
Test: go/wm-smoke
Fixes: 175743319
Change-Id: I0f5d57e512bfae4fff9cbcd52f6939103ad3a4b0
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions