summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfshooks.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-09-16 14:12:54 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-10-10 08:36:47 +0200
commit1f040d401d322cec9dc56c93e78899a429cb6e5a (patch)
treea604b60b9964f098dd07e66204abd7b564e5f3d8 /src/plugins/platforms/eglfs/qeglfshooks.h
parent881ceeff428c377d02ae3881beccdbb028385075 (diff)
eglfs: Add support for systems without pbuffer support
Use a small native window and window surface in case the hooks indicate that pbuffer support is not available. Change-Id: I6515309041f0e1e2f5321d59941f35d6ee16dca7 Reviewed-by: Louai Al-Khanji <louai.al-khanji@digia.com> Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfshooks.h')
-rw-r--r--src/plugins/platforms/eglfs/qeglfshooks.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfshooks.h b/src/plugins/platforms/eglfs/qeglfshooks.h
index 3fba6409a1..078a174a16 100644
--- a/src/plugins/platforms/eglfs/qeglfshooks.h
+++ b/src/plugins/platforms/eglfs/qeglfshooks.h
@@ -62,6 +62,7 @@ public:
virtual EGLNativeWindowType createNativeWindow(QPlatformWindow *platformWindow,
const QSize &size,
const QSurfaceFormat &format);
+ virtual EGLNativeWindowType createNativeOffscreenWindow(const QSurfaceFormat &format);
virtual void destroyNativeWindow(EGLNativeWindowType window);
virtual bool hasCapability(QPlatformIntegration::Capability cap) const;
virtual QPlatformCursor *createCursor(QPlatformScreen *screen) const;
@@ -72,6 +73,8 @@ public:
virtual QByteArray fbDeviceName() const;
virtual int framebufferIndex() const;
+ virtual bool supportsPBuffers() const;
+
static QEglFSHooks *hooks()
{
#ifdef EGLFS_PLATFORM_HOOKS