diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-10-01 14:29:15 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-10-01 20:12:15 +0200 |
commit | 90c54b02f83961b1c66f10fe57bcfcf4523ebba1 (patch) | |
tree | fe38a30c28765cab00c270ce735c130911d325e2 /src/gui/kernel/qplatformsurface.h | |
parent | 8c52f8cbf54634e880b96e4e9b0e54348de60440 (diff) |
Fix scrolling of QRasterBackingStore when operating on QRasterGLSurface
We were to strict in what surface type we allowed scrolling for. The
RasterGLSurface type is an odd one, used by widgets to compose GL
and raster content, which means we still have a raster backingstore
we can scroll. It's just the flush that's different.
Pick-to: 6.2
Change-Id: Ia229c21c00ad38df9e87f4fc78e341e030ef228d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformsurface.h')
-rw-r--r-- | src/gui/kernel/qplatformsurface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformsurface.h b/src/gui/kernel/qplatformsurface.h index 475f3ef330..bf0ba81d7f 100644 --- a/src/gui/kernel/qplatformsurface.h +++ b/src/gui/kernel/qplatformsurface.h @@ -73,6 +73,8 @@ public: QSurface *surface() const; virtual QPlatformScreen *screen() const = 0; + static bool isRasterSurface(QSurface *surface); + private: explicit QPlatformSurface(QSurface *surface); |