summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformintegration.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@sletta.org>2014-09-30 11:31:28 +0200
committerJørgen Lind <jorgen.lind@theqtcompany.com>2015-01-17 12:11:15 +0100
commitebdd4a0ba7daf74b11f716d291a97f7cd28c2aca (patch)
tree46a6cebb5d287f71bb2ce300535bc4f2b506846c /src/gui/kernel/qplatformintegration.h
parent205f68f8ad866857ccac58799fa1ab932ee06773 (diff)
Introducing QPlatformHardwareCompositor.
Can be used by applications to send hardware buffers directly to the hardware compositor, if available. The primary usecase right now will be from QtWayland to 2D composition of surface by bypassing the OpenGL composition. Change-Id: Ibdcdcc744c34869d3abbc11aad448a755f87161f Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qplatformintegration.h')
-rw-r--r--src/gui/kernel/qplatformintegration.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformintegration.h b/src/gui/kernel/qplatformintegration.h
index dbef939b8b..adc9c98c37 100644
--- a/src/gui/kernel/qplatformintegration.h
+++ b/src/gui/kernel/qplatformintegration.h
@@ -71,6 +71,7 @@ class QPlatformSessionManager;
class QKeyEvent;
class QPlatformOffscreenSurface;
class QOffscreenSurface;
+class QPlatformHardwareCompositor;
class Q_GUI_EXPORT QPlatformIntegration
{
@@ -169,6 +170,8 @@ public:
virtual QOpenGLContext::OpenGLModuleType openGLModuleType();
#endif
+ virtual QPlatformHardwareCompositor *hardwareCompositor(QScreen *) const;
+
protected:
void screenAdded(QPlatformScreen *screen);
void destroyScreen(QPlatformScreen *screen);