kwin/src/wayland/drmclientbuffer.h
Vlad Zahorodnii 0d2e361eca wayland: Drop ClientBuffer
The ClientBuffer type is empty now, most of the things have been
upstreamed to the GraphicsBuffer type. So let's drop it to simplify the
type hierarchy.
2023-04-30 15:39:31 +03:00

44 lines
1 KiB
C++

/*
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#pragma once
#include "kwin_export.h"
#include <QObject>
namespace KWaylandServer
{
class Display;
class DrmClientBufferIntegrationPrivate;
/**
* The DrmClientBufferIntegration provides a stub implementation for the wl_drm
* protocol.
*
* It provides the minimum amount of information to Xwayland so it can run. No
* GraphicsBuffers are provided by the DrmClientBufferIntegration. Xwayland is
* expected to provide us linux dmabuf client buffers instead.
*
* Once the wl_drm protocol is no longer mandatory in Xwayland, this stub can be
* dropped.
*/
class KWIN_EXPORT DrmClientBufferIntegration : public QObject
{
Q_OBJECT
public:
explicit DrmClientBufferIntegration(Display *display);
~DrmClientBufferIntegration() override;
void setDevice(const QString &node);
private:
std::unique_ptr<DrmClientBufferIntegrationPrivate> d;
};
} // namespace KWaylandServer