summaryrefslogtreecommitdiffstats
path: root/src/qt-compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.h
blob: 9e3b16f333098cb3c4bd03b67bcd3e543ef3673b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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