DirectFB define platform integration capabilities
Make sure that the DirectFB plugin defines that it is capable of using Threaded Pixmaps, Multiple Windows, and OpenGL when available. Change-Id: I68a0a69568af8e00e47cd2c59bbf6a301df6ec34 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>bb10
parent
6f7bc2a707
commit
63ec4d42c0
|
|
@ -71,6 +71,19 @@ void QDirectFbIntegration::connectToDirectFb()
|
|||
initializeInput();
|
||||
}
|
||||
|
||||
bool QDirectFbIntegration::hasCapability(Capability cap) const
|
||||
{
|
||||
switch (cap) {
|
||||
case ThreadedPixmaps: return true;
|
||||
case MultipleWindows: return true;
|
||||
#ifdef DIRECTFB_GL_EGL
|
||||
case OpenGL: return true;
|
||||
case ThreadedOpenGL: return true;
|
||||
#endif
|
||||
default: return QPlatformIntegration::hasCapability(cap);
|
||||
}
|
||||
}
|
||||
|
||||
void QDirectFbIntegration::initializeDirectFB()
|
||||
{
|
||||
const QStringList args = QCoreApplication::arguments();
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ public:
|
|||
|
||||
void connectToDirectFb();
|
||||
|
||||
bool hasCapability(Capability cap) const;
|
||||
QPlatformPixmap *createPlatformPixmap(QPlatformPixmap::PixelType type) const;
|
||||
QPlatformWindow *createPlatformWindow(QWindow *window) const;
|
||||
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;
|
||||
|
|
@ -80,6 +81,7 @@ protected:
|
|||
QScopedPointer<QDirectFbInput> m_input;
|
||||
QScopedPointer<QThread> m_inputRunner;
|
||||
QScopedPointer<QPlatformFontDatabase> m_fontDb;
|
||||
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
Loading…
Reference in New Issue