From 9487acb9d2dea07a89a82c1a723bd08c45133cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Tue, 15 May 2012 08:12:45 +0200 Subject: Handle EglDisplay and EglContext in the native interface of eglfs. Change-Id: I793176204f12eea9d915fb7fe489bd3450a283cd Reviewed-by: Girish Ramakrishnan --- src/plugins/platforms/eglfs/qeglfsintegration.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/plugins/platforms/eglfs/qeglfsintegration.h') diff --git a/src/plugins/platforms/eglfs/qeglfsintegration.h b/src/plugins/platforms/eglfs/qeglfsintegration.h index b7cb715a9c..04d77a5903 100644 --- a/src/plugins/platforms/eglfs/qeglfsintegration.h +++ b/src/plugins/platforms/eglfs/qeglfsintegration.h @@ -45,13 +45,14 @@ #include "qeglfsscreen.h" #include +#include #include QT_BEGIN_HEADER QT_BEGIN_NAMESPACE -class QEglFSIntegration : public QPlatformIntegration +class QEglFSIntegration : public QPlatformIntegration, public QPlatformNativeInterface { public: QEglFSIntegration(); @@ -62,6 +63,7 @@ public: QPlatformWindow *createPlatformWindow(QWindow *window) const; QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const; QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const; + QPlatformNativeInterface *nativeInterface() const; QPlatformFontDatabase *fontDatabase() const; @@ -69,6 +71,10 @@ public: QVariant styleHint(QPlatformIntegration::StyleHint hint) const; + // QPlatformNativeInterface + void *nativeResourceForIntegration(const QByteArray &resource); + void *nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context); + private: QPlatformFontDatabase *mFontDb; QPlatformScreen *mScreen; -- cgit v1.2.3