KWin
Loading...
Searching...
No Matches
openglsurfacetexture.cpp
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
8#include "opengl/gltexture.h"
9
10namespace KWin
11{
12
14 : m_backend(backend)
15{
16}
17
21
23{
24 return m_texture.isValid();
25}
26
31
36
38{
39 for (auto &plane : planes) {
40 plane->setDirty();
41 }
42}
43
44} // namespace KWin
The OpenGLBackend creates and holds the OpenGL context and is responsible for Texture from Pixmap.
QList< std::shared_ptr< GLTexture > > planes
OpenGLSurfaceTexture(OpenGLBackend *backend)
OpenGLSurfaceContents m_texture
OpenGLSurfaceContents texture() const
OpenGLBackend * backend() const