summaryrefslogtreecommitdiffstats
path: root/src/compositor/hardware_integration/dri2_xcb/dri2xcbhwintegration.h
blob: 9ed3558152035ac4888999c2a717c2c046ef0825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef DRI2XCBHWINTEGRATION_H
#define DRI2XCBHWINTEGRATION_H

#include "hardware_integration/graphicshardwareintegration.h"

class DrmObject;

class Dri2XcbHWIntegration : public GraphicsHardwareIntegration
{
public:
    Dri2XcbHWIntegration(WaylandCompositor *compositor);

    void initializeHardware(Wayland::Display *waylandDisplay);

    GLuint createTextureFromBuffer(wl_buffer *buffer, QOpenGLContext *context);

private:
    DrmObject *m_drm_object;
};

#endif // DRI2XCBHWINTEGRATION_H