summaryrefslogtreecommitdiffstats
path: root/src/compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.h')
-rw-r--r--src/compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.h b/src/compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.h
new file mode 100644
index 000000000..9e3b16f33
--- /dev/null
+++ b/src/compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.h
@@ -0,0 +1,26 @@
+#ifndef XCOMPOSITEEGLINTEGRATION_H
+#define XCOMPOSITEEGLINTEGRATION_H
+
+#include "hardware_integration/graphicshardwareintegration.h"
+
+#include "xlibinclude.h"
+
+#include <EGL/egl.h>
+
+class XCompositeEglIntegration : public GraphicsHardwareIntegration
+{
+public:
+ XCompositeEglIntegration(WaylandCompositor *compositor);
+
+ void initializeHardware(Wayland::Display *waylandDisplay);
+
+ GLuint createTextureFromBuffer(struct wl_buffer *buffer, QOpenGLContext *context);
+ bool isYInverted(wl_buffer *) const;
+
+private:
+ Display *mDisplay;
+ EGLDisplay mEglDisplay;
+ int mScreen;
+};
+
+#endif // XCOMPOSITEEGLINTEGRATION_H