Commit graph

17 commits

Author SHA1 Message Date
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
21pages
96ed6df4a9 remove switch rgba
Signed-off-by: 21pages <sunboeasy@gmail.com>
2024-11-26 22:02:57 +08:00
Kingtous
785c34f36b bump: 0.0.15 2023-03-23 23:34:09 +08:00
Kingtous
40fd713395 fix: remove unnecessary rgba class func pointer 2023-03-21 21:17:43 +08:00
fufesou
8d66a7c55e
Refact/stride align (#8)
* rename row_align_bytes  to stride_align

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* trivail changes

Signed-off-by: fufesou <shuanglongchen@yeah.net>

---------

Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-03-03 09:46:33 +08:00
fufesou
873919902e
Feat/row align bytes (#7)
* better bytes alignment

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* debug macos

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* debug linux

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* windows switch_rgba

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* better switch_rgba

Signed-off-by: fufesou <shuanglongchen@yeah.net>

---------

Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-03-03 09:30:05 +08:00
Chieh Wang
11cf53bac6
fix compile err (#5)
texture_rgba_renderer.h:86:19: error: assigning to 'const uint8_t *' (aka 'const unsigned char *') from incompatible type 'void *'
2023-03-01 08:53:00 +08:00
Kingtous
8208587b23 refactor: use instance instead 2023-02-28 19:25:22 +08:00
Kingtous
bcd8fad1c0 refactor: change to pixel rgba 2023-02-28 17:00:48 +08:00
Kingtous
c37336cd9b opt: try to fix the memory corrupt issue on Linux 2023-02-28 15:37:20 +08:00
Kingtous
686d6edaa5 fix: linux read on write 2023-02-21 16:39:28 +08:00
Kingtous
7d465293fa fix: use BGRA for linux 2023-02-19 15:19:20 +08:00
Kingtous
4bdb5b430e fix: memory leak on Linux 2023-02-19 14:44:08 +08:00
Kingtous
35e480aa73 fix: may memory issue on linux 2023-02-18 19:17:07 +08:00
Kingtous
3e42db31d1 fix: linux syn 2023-02-18 19:10:08 +08:00
Kingtous
3d549cb70b opt: hardware accleration texture on Linux 2023-02-16 16:30:11 +08:00
Kingtous
b2bd5910e7 feat: init repo 2023-02-16 15:03:12 +08:00