flutter_texture_rgba_renderer/linux
yunchan 48fa1d7ddf linux: free frame buffers on closeTexture and in finalize (Kitedesk B212)
closeTexture marked the texture terminated but kept the frame last handed to
the engine and any frame still waiting, and TextureRgba had no finalize, so
each closed session kept one or two frame-sized buffers forever (2 x
width x height x 4 bytes measured per 1080p session).

terminate now frees both buffers under the texture mutex: the texture is
already unregistered and OnRgba stops copying once terminated is set. A
finalize frees them as well. GObject and GL lifetime are unchanged here.

Tests: close_frees_frame_buffers, closed_texture_ignores_late_frames,
finalize_frees_frame_buffers and frames_racing_close pass (also under ASan);
the four recycling tests still fail.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-11 15:34:27 +09:00
..
include/texture_rgba_renderer linux: free frame buffers on closeTexture and in finalize (Kitedesk B212) 2026-10-11 15:34:27 +09:00
test linux: add texture lifecycle tests (Kitedesk B212) 2026-10-11 15:33:50 +09:00
CMakeLists.txt feat: init repo 2023-02-16 15:03:12 +08:00
texture_rgba_renderer_plugin.cc remove switch rgba 2024-11-26 22:02:57 +08:00