From 3058e21af0f36d78e5515cef0fe88969310fa912 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Mon, 29 Jan 2018 15:32:55 +0100 Subject: eglfs_kms_vsp2: Add support for setting layer alpha Exposed through QEglFSFunctions::vsp2SetLayerAlpha. Change-Id: I2a600971d5a2aa56d4bf7cde03df3323f17249cd Reviewed-by: Laszlo Agocs --- src/platformheaders/eglfsfunctions/qeglfsfunctions.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/platformheaders') diff --git a/src/platformheaders/eglfsfunctions/qeglfsfunctions.h b/src/platformheaders/eglfsfunctions/qeglfsfunctions.h index 67522ec9be..7165c3cff4 100644 --- a/src/platformheaders/eglfsfunctions/qeglfsfunctions.h +++ b/src/platformheaders/eglfsfunctions/qeglfsfunctions.h @@ -98,6 +98,15 @@ public: return func && func(screen, id, position); } + typedef bool (*Vsp2SetLayerAlphaType)(const QScreen *screen, int id, qreal alpha); + static QByteArray vsp2SetLayerAlphaTypeIdentifier() { return QByteArrayLiteral("EglFSVsp2SetLayerAlpha"); } + + static bool vsp2SetLayerAlpha(const QScreen *screen, int id, qreal alpha) + { + auto func = reinterpret_cast(QGuiApplication::platformFunction(vsp2SetLayerAlphaTypeIdentifier())); + return func && func(screen, id, alpha); + } + typedef void (*Vsp2AddBlendListenerType)(const QScreen *screen, void(*callback)()); static QByteArray vsp2AddBlendListenerTypeIdentifier() { return QByteArrayLiteral("EglFSVsp2AddBlendListener"); } -- cgit v1.2.3