/* SPDX-FileCopyrightText: 2021 Vlad Zahorodnii SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include "platformopenglsurfacetexture_internal.h" namespace KWin { class KWIN_EXPORT BasicEGLSurfaceTextureInternal : public PlatformOpenGLSurfaceTextureInternal { public: BasicEGLSurfaceTextureInternal(OpenGLBackend *backend, SurfacePixmapInternal *pixmap); bool create() override; void update(const QRegion ®ion) override; private: bool updateFromFramebuffer(); bool updateFromImage(const QRegion ®ion); }; } // namespace KWin