QCanvasPainter: Track textures to clean up by id
Store the ids of textures pending removal in a QSet instead of copies
of QCanvasImage in a QList. This avoids the linear search in
removeTextureId() and the O(N*M) list lookups in handleRemoveTextures().
Assisted-by: Claude Code
Pick-to: 6.12
Change-Id: Ib01cf08a00dd2c6e49adbd6983a2eaf5b197ac1b
Reviewed-by: Owais Akhtar <owais.akhtar@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
| commit | 4b959e0a8d88512cbc5dd4cd9e0b707123797e63 |
| parent | 40dd704d9ac55a176c23e541cf49da6b10883b71 |
| author | Kaj Grönholm <kaj.gronholm@qt.io> |
| committer | Kaj Grönholm <kaj.gronholm@qt.io> |
| commit time | Mon, 19 Oct 2026 10:46:11 +0000 |