eglfs: Allow forwarding platformFunction() to backends
Task-number: QTBUG-63088 Change-Id: I52cc56324c755cc4f7c9388470bfd27793b4abeb Reviewed-by: Andy Nichols <andy.nichols@qt.io>bb10
parent
d47475bf65
commit
c6439a00b1
|
|
@ -351,6 +351,12 @@ bool QEglFSDeviceIntegration::supportsSurfacelessContexts() const
|
|||
return true;
|
||||
}
|
||||
|
||||
QFunctionPointer QEglFSDeviceIntegration::platformFunction(const QByteArray &function) const
|
||||
{
|
||||
Q_UNUSED(function);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void *QEglFSDeviceIntegration::wlDisplay() const
|
||||
{
|
||||
return Q_NULLPTR;
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ public:
|
|||
virtual int framebufferIndex() const;
|
||||
virtual bool supportsPBuffers() const;
|
||||
virtual bool supportsSurfacelessContexts() const;
|
||||
virtual QFunctionPointer platformFunction(const QByteArray &function) const;
|
||||
|
||||
virtual void *wlDisplay() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -427,11 +427,9 @@ QFunctionPointer QEglFSIntegration::platformFunction(const QByteArray &function)
|
|||
#if QT_CONFIG(evdev)
|
||||
if (function == QEglFSFunctions::loadKeymapTypeIdentifier())
|
||||
return QFunctionPointer(loadKeymapStatic);
|
||||
#else
|
||||
Q_UNUSED(function)
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
return qt_egl_device_integration()->platformFunction(function);
|
||||
}
|
||||
|
||||
void QEglFSIntegration::loadKeymapStatic(const QString &filename)
|
||||
|
|
|
|||
Loading…
Reference in New Issue