summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglbuffer.cpp
diff options
context:
space:
mode:
authorNils Petter Skålerud <[email protected]>2025-05-28 15:45:03 +0200
committerNils Petter Skålerud <[email protected]>2025-06-04 02:37:47 +0200
commitcb09be1512e5f932af1744773a7638f23ebd57f9 (patch)
treead493468fe7310bc65d76e237bb85f0e339bf895 /src/opengl/qopenglbuffer.cpp
parente67c4c986ffaeb98c1ccb52b689e7a8b37eb6672 (diff)
QScreen, iOS: Make grabWindow() use UIGraphicsImageRendererHEADdev
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/opengl/qopenglbuffer.cpp')
0 files changed, 0 insertions, 0 deletions