diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2014-12-03 16:56:17 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2014-12-04 13:46:59 +0100 |
commit | 198d7a51d4fc894fca691c1f8243372e876af68a (patch) | |
tree | 48183281fe15fb053afd5f837b6d9eeb15c7f7e2 /src/client/hardwareintegration | |
parent | 6b8b6b80a1852c1e4d0a626129d4382d11423a54 (diff) |
Enable Qt WebEngine on Wayland
The native resource getters that are supported by eglfs will have to be
supported by the wayland platform plugin too. (on wayland-egl at least)
Change-Id: Ibbab649c04785dbde177342c45b9bc6f1edd954d
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/client/hardwareintegration')
-rw-r--r-- | src/client/hardwareintegration/qwaylandclientbufferintegration_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/hardwareintegration/qwaylandclientbufferintegration_p.h b/src/client/hardwareintegration/qwaylandclientbufferintegration_p.h index bbe42eb26..898ab2251 100644 --- a/src/client/hardwareintegration/qwaylandclientbufferintegration_p.h +++ b/src/client/hardwareintegration/qwaylandclientbufferintegration_p.h @@ -69,6 +69,14 @@ public: virtual QWaylandWindow *createEglWindow(QWindow *window) = 0; virtual QPlatformOpenGLContext *createPlatformOpenGLContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share) const = 0; + + enum NativeResource { + EglDisplay, + EglConfig, + EglContext + }; + virtual void *nativeResource(NativeResource /*resource*/) { return Q_NULLPTR; } + virtual void *nativeResourceForContext(NativeResource /*resource*/, QPlatformOpenGLContext */*context*/) { return Q_NULLPTR; } }; QT_END_NAMESPACE |