summaryrefslogtreecommitdiffstats
path: root/src/platformheaders/eglfsfunctions
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-01-29 15:32:55 +0100
committerJohan Helsing <johan.helsing@qt.io>2018-02-05 13:12:01 +0000
commit3058e21af0f36d78e5515cef0fe88969310fa912 (patch)
tree9c73cda7d109b2bdd1cf2884ef4de60a2fbed203 /src/platformheaders/eglfsfunctions
parent38c6d10bc83dedf9283b7a89d076ea2980de7843 (diff)
eglfs_kms_vsp2: Add support for setting layer alpha
Exposed through QEglFSFunctions::vsp2SetLayerAlpha. Change-Id: I2a600971d5a2aa56d4bf7cde03df3323f17249cd Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/platformheaders/eglfsfunctions')
-rw-r--r--src/platformheaders/eglfsfunctions/qeglfsfunctions.h9
1 files changed, 9 insertions, 0 deletions
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<Vsp2SetLayerAlphaType>(QGuiApplication::platformFunction(vsp2SetLayerAlphaTypeIdentifier()));
+ return func && func(screen, id, alpha);
+ }
+
typedef void (*Vsp2AddBlendListenerType)(const QScreen *screen, void(*callback)());
static QByteArray vsp2AddBlendListenerTypeIdentifier() { return QByteArrayLiteral("EglFSVsp2AddBlendListener"); }