eglfs: Forward nativeRes.ForScreen.() to backends

Change-Id: I928f97483806ee74ca844941eed455ff4f9d9508
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Lionel CHAZALLON 2018-01-08 19:47:41 +01:00
parent 4cce7dc19d
commit 731651af99
3 changed files with 10 additions and 2 deletions

View File

@ -363,6 +363,13 @@ void *QEglFSDeviceIntegration::nativeResourceForIntegration(const QByteArray &na
return nullptr;
}
void *QEglFSDeviceIntegration::nativeResourceForScreen(const QByteArray &resource, QScreen *screen)
{
Q_UNUSED(resource);
Q_UNUSED(screen);
return nullptr;
}
void *QEglFSDeviceIntegration::wlDisplay() const
{
return nullptr;

View File

@ -105,7 +105,7 @@ public:
virtual bool supportsSurfacelessContexts() const;
virtual QFunctionPointer platformFunction(const QByteArray &function) const;
virtual void *nativeResourceForIntegration(const QByteArray &name);
virtual void *nativeResourceForScreen(const QByteArray &resource, QScreen *screen);
virtual void *wlDisplay() const;
static EGLConfig chooseConfig(EGLDisplay display, const QSurfaceFormat &format);

View File

@ -331,7 +331,7 @@ void *QEglFSIntegration::nativeResourceForIntegration(const QByteArray &resource
return result;
}
void *QEglFSIntegration::nativeResourceForScreen(const QByteArray &resource, QScreen *)
void *QEglFSIntegration::nativeResourceForScreen(const QByteArray &resource, QScreen *screen)
{
void *result = 0;
@ -342,6 +342,7 @@ void *QEglFSIntegration::nativeResourceForScreen(const QByteArray &resource, QSc
result = reinterpret_cast<void*>(nativeDisplay());
break;
default:
result = qt_egl_device_integration()->nativeResourceForScreen(resource, screen);
break;
}