Support hardware composition for webOS
In similar way with vsp2, the interfaces are needed to support qtwayland hardware layer for webOS. https://doc.qt.io/qt-5/qml-qtwayland-compositor-waylandhardwarelayer.html Change-Id: I14481373d696b501a774b9258da789554065a6ea Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Elvis Lee <kwangwoong.lee@lge.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
bf1fdfd4fb
commit
96afaf41ca
@ -91,6 +91,19 @@ struct Q_GUI_EXPORT QVsp2Screen
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_WEBOS) || defined(Q_CLANG_QDOC)
|
||||
struct Q_GUI_EXPORT QWebOSScreen
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QWebOSScreen)
|
||||
virtual int addLayer(void *gbm_bo, const QRectF &geometry) = 0;
|
||||
virtual void setLayerBuffer(int id, void *gbm_bo) = 0;
|
||||
virtual void setLayerGeometry(int id, const QRectF &geometry) = 0;
|
||||
virtual void setLayerAlpha(int id, qreal alpha) = 0;
|
||||
virtual bool removeLayer(int id) = 0;
|
||||
virtual void addFlipListener(void (*callback)()) = 0;
|
||||
};
|
||||
#endif
|
||||
|
||||
} // QNativeInterface::Private
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -185,6 +185,10 @@ QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QXcbWindow);
|
||||
QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QVsp2Screen);
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WEBOS
|
||||
QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QWebOSScreen);
|
||||
#endif
|
||||
|
||||
#if QT_CONFIG(evdev)
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user