KWin
Loading...
Searching...
No Matches
src
platformsupport
scenes
opengl
basiceglsurfacetexture_wayland.h
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
7
#pragma once
8
9
#include "
openglsurfacetexture_wayland.h
"
10
11
namespace
KWin
12
{
13
14
class
AbstractEglBackend;
15
class
GraphicsBuffer;
16
17
class
KWIN_EXPORT
BasicEGLSurfaceTextureWayland
:
public
OpenGLSurfaceTextureWayland
18
{
19
public
:
20
BasicEGLSurfaceTextureWayland
(
OpenGLBackend
*backend,
SurfacePixmap
*pixmap);
21
~BasicEGLSurfaceTextureWayland
()
override
;
22
23
AbstractEglBackend
*backend()
const
;
24
25
bool
create()
override
;
26
void
update(
const
QRegion ®ion)
override
;
27
28
private
:
29
bool
loadShmTexture(
GraphicsBuffer
*buffer);
30
void
updateShmTexture(
GraphicsBuffer
*buffer,
const
QRegion ®ion);
31
bool
loadDmabufTexture(
GraphicsBuffer
*buffer);
32
void
updateDmabufTexture(
GraphicsBuffer
*buffer);
33
void
destroy();
34
35
enum class
BufferType {
36
None,
37
Shm,
38
DmaBuf,
39
};
40
41
BufferType m_bufferType = BufferType::None;
42
};
43
44
}
// namespace KWin
KWin::AbstractEglBackend
Definition
abstract_egl_backend.h:28
KWin::BasicEGLSurfaceTextureWayland
Definition
basiceglsurfacetexture_wayland.h:18
KWin::GraphicsBuffer
Definition
graphicsbuffer.h:57
KWin::OpenGLBackend
The OpenGLBackend creates and holds the OpenGL context and is responsible for Texture from Pixmap.
Definition
openglbackend.h:38
KWin::OpenGLSurfaceTextureWayland
Definition
openglsurfacetexture_wayland.h:17
KWin::SurfacePixmap
Definition
surfaceitem.h:96
KWin
Definition
activation_test.cpp:20
openglsurfacetexture_wayland.h
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0