diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2018-09-27 12:26:36 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2018-11-30 10:28:42 +0000 |
commit | eab84914f1a31984f4698bcbca170556a56fd6fb (patch) | |
tree | 373a473239cde9c34e5b175e0cd6ef40558da626 /src/gui/text/qfontengine.cpp | |
parent | 7aaf54f5725c65bf830088a9cfd104ef4817f256 (diff) |
macOS: make QScreen::grabWindow() fast again
Commit 17b73b0d2b8 regressed performance by grabbing
the entire screen and then copying the grab region.
Move back to grabbing a minimal rectangle instead.
Also handle multi-screen grabs at different device
pixel ratios.
Multi-screen grabbing is handled by grabbing each screen
individually, and then stitching together the result.
The returned pixmap is created using the highest DPR
available, upscaling lower resolution parts as needed.
Change-Id: I9d45c5f7ec7b342360b745f49ef2939dc588f40b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/text/qfontengine.cpp')
0 files changed, 0 insertions, 0 deletions