summaryrefslogtreecommitdiffstats
path: root/src/platformheaders/eglfsfunctions/qeglfsfunctions.h
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-02-11 09:13:21 +0100
committerLiang Qi <liang.qi@qt.io>2018-02-11 09:13:21 +0100
commit8dd22d9255287bad17823d8738ac05dbffca33ab (patch)
tree94cc700070d567960260171e7edfad9d587d1b6e /src/platformheaders/eglfsfunctions/qeglfsfunctions.h
parent7a342372bb1ecbe4146811cff48ede974c7761b5 (diff)
parent9b800b55c1c4f2b3e6ed365736e357eb31423c95 (diff)
Merge remote-tracking branch 'origin/5.11' into dev
Diffstat (limited to 'src/platformheaders/eglfsfunctions/qeglfsfunctions.h')
-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 67522ec9bea..7165c3cff45 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"); }