diff options
| author | 2025-03-12 09:33:21 +0900 | |
|---|---|---|
| committer | 2025-03-12 12:09:33 +0900 | |
| commit | ef3f9c55ccf5c4be643650a2126df89172510bc4 (patch) | |
| tree | e2179d40a3307ffa2d13ffa5aa485498878eeb36 /ravenwood/scripts/extract-last-soong-commands.py | |
| parent | c76ef2ceac32b3cf7436d72670953a186fc9debf (diff) | |
Prevent surface use after release in DragResizeInputListener
DragResizeInputListener initialized input channels on a background
thread. The decor surface used for initialization could be released on
the main thread before the background initialization completed, leading
to a use-after-release.
This change addresses the issue by having DragResizeInputListener create
and own a new SurfaceControl referencing the same underlying surface as
the decor surface. DragResizeInputListener is then responsible for
releasing this new SurfaceControl after background initialization,
ensuring safe cleanup.
Bug: 401470167
Test: DragResizeInputListenerTest
Flag: com.android.window.flags.enable_drag_resize_set_up_in_bg_thread
Change-Id: I37ba7d97d51079ba07148a425826a0cd9b59c3fd
Diffstat (limited to 'ravenwood/scripts/extract-last-soong-commands.py')
0 files changed, 0 insertions, 0 deletions