summaryrefslogtreecommitdiff
path: root/src/hardwareintegration/compositor/wayland-eglstream-controller/waylandeglstreamcontroller.cpp
blob: c2689b2b2b10bbc27ae48090ea831b0544423ba6 (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
27
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include "waylandeglstreamcontroller.h"
#include "waylandeglstreamintegration.h"

#include <QtWaylandCompositor/QWaylandCompositor>

#include <unistd.h>

QT_BEGIN_NAMESPACE



WaylandEglStreamController::WaylandEglStreamController(wl_display *display, WaylandEglStreamClientBufferIntegration *clientBufferIntegration)
    : wl_eglstream_controller(display, 1 /*version*/)
    , m_clientBufferIntegration(clientBufferIntegration)
{
}

void WaylandEglStreamController::eglstream_controller_attach_eglstream_consumer(Resource *resource, struct ::wl_resource *wl_surface, struct ::wl_resource *wl_buffer)
{
    Q_UNUSED(resource);
    m_clientBufferIntegration->attachEglStreamConsumer(wl_surface, wl_buffer);
}

QT_END_NAMESPACE