[QNX] Use QRhiBackingstore for non-raster surface windows
Since the change to use compose render-to-texture widgets through QRhi, the RasterGLSurface is not existing anymore and it was used in QNX QPA to check the support for using backingstore with non-raster windows. With the use of QRhiBackingstore the QNX QPA now supports render-to-texture widgets for non-raster surface windows. Fixes: QTBUG-114938 Task-number: QTBUG-114938 Pick-to: 6.5 6.6 Change-Id: I01d4a34efe4902a527051776b0460ccf22e5d232 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Marianne Yrjänä <marianne.yrjana@qt.io> (cherry picked from commit c9ddc4b8e17fac10d2f25fe21c09bdd734513ac6) Reviewed-by: James McDonnell <jmcdonnell@blackberry.com>
This commit is contained in:
parent
80b41c615d
commit
14ea2a3662
@ -398,6 +398,12 @@ qt_internal_extend_target(Gui CONDITION APPLE
|
||||
${FWImageIO}
|
||||
)
|
||||
|
||||
qt_internal_extend_target(Gui CONDITION QNX
|
||||
SOURCES
|
||||
painting/qrasterbackingstore.cpp painting/qrasterbackingstore_p.h
|
||||
painting/qrhibackingstore.cpp painting/qrhibackingstore_p.h
|
||||
)
|
||||
|
||||
qt_internal_extend_target(Gui CONDITION QT_FEATURE_animation
|
||||
SOURCES
|
||||
animation/qguivariantanimation.cpp
|
||||
|
@ -49,6 +49,7 @@
|
||||
#include <qpa/qwindowsysteminterface.h>
|
||||
|
||||
#include <QtGui/private/qguiapplication_p.h>
|
||||
#include <QtGui/private/qrhibackingstore_p.h>
|
||||
|
||||
#if !defined(QT_NO_OPENGL)
|
||||
#include "qqnxglcontext.h"
|
||||
@ -333,7 +334,18 @@ QPlatformWindow *QQnxIntegration::createPlatformWindow(QWindow *window) const
|
||||
QPlatformBackingStore *QQnxIntegration::createPlatformBackingStore(QWindow *window) const
|
||||
{
|
||||
qIntegrationDebug();
|
||||
return new QQnxRasterBackingStore(window);
|
||||
QSurface::SurfaceType surfaceType = window->surfaceType();
|
||||
switch (surfaceType) {
|
||||
case QSurface::RasterSurface:
|
||||
return new QQnxRasterBackingStore(window);
|
||||
#if !defined(QT_NO_OPENGL)
|
||||
// Return a QRhiBackingStore for non-raster surface windows
|
||||
case QSurface::OpenGLSurface:
|
||||
return new QRhiBackingStore(window);
|
||||
#endif
|
||||
default:
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(QT_NO_OPENGL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user