diff options
author | Nils Petter Skålerud <[email protected]> | 2025-05-28 15:45:03 +0200 |
---|---|---|
committer | Nils Petter Skålerud <[email protected]> | 2025-06-04 02:37:47 +0200 |
commit | cb09be1512e5f932af1744773a7638f23ebd57f9 (patch) | |
tree | ad493468fe7310bc65d76e237bb85f0e339bf895 /src/concurrent/qtconcurrentrun.h | |
parent | e67c4c986ffaeb98c1ccb52b689e7a8b37eb6672 (diff) |
Currently the QIOSScreen::grabWindow implementaton relies on
UIGraphicsBeginImageContextWithOptions to do a screenshot. This API
is deprecated and produces a few warnings logs that we can't silence
even when we handle the errors. The current approach also has a memory
leak when taking screenshots in rapid succession (i.e 60 FPS).
This patch modifies grabWindow() to use UIGraphicsImageRenderer, which
replaces the deprecated API. This no longer produces warning logs when
errors are handled. This API can be used in the future to let us take
HDR screenshots once Qt has support for this. This patch solves the
mentioned memory leak.
Pick-to: 6.10 6.9 6.8
Change-Id: Ifbc8503482886246ce9611d0b7a19462fc830ecd
Reviewed-by: Tim Blechmann <[email protected]>
Diffstat (limited to 'src/concurrent/qtconcurrentrun.h')
0 files changed, 0 insertions, 0 deletions