File indexing completed on 2024-05-12 05:32:20
0001 /* 0002 SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #pragma once 0008 0009 #include "kwin_export.h" 0010 0011 #include <QObject> 0012 0013 namespace KWin 0014 { 0015 0016 class Display; 0017 class DrmClientBufferIntegrationPrivate; 0018 0019 /** 0020 * The DrmClientBufferIntegration provides a stub implementation for the wl_drm 0021 * protocol. 0022 * 0023 * It provides the minimum amount of information to Xwayland so it can run. No 0024 * GraphicsBuffers are provided by the DrmClientBufferIntegration. Xwayland is 0025 * expected to provide us linux dmabuf client buffers instead. 0026 * 0027 * Once the wl_drm protocol is no longer mandatory in Xwayland, this stub can be 0028 * dropped. 0029 */ 0030 class KWIN_EXPORT DrmClientBufferIntegration : public QObject 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 explicit DrmClientBufferIntegration(Display *display); 0036 ~DrmClientBufferIntegration() override; 0037 0038 void setDevice(const QString &node); 0039 0040 private: 0041 std::unique_ptr<DrmClientBufferIntegrationPrivate> d; 0042 }; 0043 0044 } // namespace KWin