diff options
| author | Pavel Dubsky <[email protected]> | 2025-10-29 20:38:00 +0100 |
|---|---|---|
| committer | Pavel Dubsky <[email protected]> | 2025-11-06 16:23:11 +0100 |
| commit | e8d31058c45b291d3c84d855e90acb062a5321e8 (patch) | |
| tree | 8d172800ee79c831256cc3af74e558d6ddc4f321 /src/gui/opengl/qopengltexturecache_p.h | |
| parent | aa1fedb3f21284ba0abe0b9868962fcbc641d351 (diff) | |
Add support for stateful deleters in QUniqueHandle
This change updates QUniqueHandle to follow the std::unique_ptr model,
introducing a Deleter type that can be stateful. The deleter is stored
using CompactStorage, allowing stateless deleters to incur no additional
cost through empty base optimization.
This enables handle traits to define custom deleters that carry any
required context when releasing resources (for example, ReleaseDC
needing both an HDC and an HWND).
Change-Id: I961744569b776ad7e22780bfe81a04d6051a6194
Reviewed-by: Artem Dyomin <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src/gui/opengl/qopengltexturecache_p.h')
0 files changed, 0 insertions, 0 deletions
