File indexing completed on 2026-05-17 05:39:06

0001 /*
0002     SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "qpaintersurfacetexture.h"
0010 
0011 namespace KWin
0012 {
0013 
0014 class KWIN_EXPORT QPainterSurfaceTextureWayland : public QPainterSurfaceTexture
0015 {
0016 public:
0017     QPainterSurfaceTextureWayland(QPainterBackend *backend, SurfacePixmap *pixmap);
0018 
0019     bool create() override;
0020     void update(const QRegion &region) override;
0021 
0022 private:
0023     SurfacePixmap *m_pixmap;
0024 };
0025 
0026 } // namespace KWin