Debian Codegraph @

src/backends/x11/standalone/x11_standalone_egl_backend.h

raw symbols SCIP
1 /*
2 SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <[email protected]>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #pragma once
8
9 #include "core/outputlayer.h"cxx . . $ `<file>/src/core/outputlayer.h`/
10 #include "options.h"cxx . . $ `<file>/src/options.h`/
11 #include "platformsupport/scenes/opengl/openglbackend.h"cxx . . $ `<file>/src/platformsupport/scenes/opengl/openglbackend.h`/
12 #include "platformsupport/scenes/opengl/openglsurfacetexture_x11.h"cxx . . $ `<file>/src/platformsupport/scenes/opengl/openglsurfacetexture_x11.h`/
13 #include "utils/damagejournal.h"cxx . . $ `<file>/src/utils/damagejournal.h`/
14
15 #include "opengl/gltexture.h"cxx . . $ `<file>/src/opengl/gltexture.h`/
16 #include "opengl/gltexture_p.h"cxx . . $ `<file>/src/opengl/gltexture_p.h`/
17
18 #include <epoxy/egl.h>
19
20 typedef struct _XDisplaycxx . . $ _XDisplay# Displaycxx . . $ Display#;
21
22 namespace KWincxx . . $ KWin/
23 {
24
25 class EglPixmapTexturePrivatecxx . . $ KWin/EglPixmapTexturePrivate#;
26 class SoftwareVsyncMonitorcxx . . $ KWin/SoftwareVsyncMonitor#;
27 class X11StandaloneBackendcxx . . $ KWin/X11StandaloneBackend#;
28 class EglBackendcxx . . $ KWin/EglBackend#;
29 class GLRenderTimeQuerycxx . . $ KWin/GLRenderTimeQuery#;
30 class EglDisplaycxx . . $ KWin/EglDisplay#;
31 class EglContextcxx . . $ KWin/EglContext#;
32
33 class EglLayercxx . . $ KWin/EglLayer# : public OutputLayercxx . . $ KWin/OutputLayer#
34 {
35 public:
36 EglLayercxx . . $ KWin/EglLayer#EglLayer(88d74bfebf2a8f86).(EglBackendcxx . . $ KWin/EglBackend# *backend);
37
38 stdcxx . . $ std/::optionalcxx . . $ std/optional#<OutputLayerBeginFrameInfocxx . . $ KWin/OutputLayerBeginFrameInfo#> doBeginFramecxx . . $ KWin/EglLayer#doBeginFrame(f34062ec2930e73d).() override;
39 bool doEndFramecxx . . $ KWin/EglLayer#doEndFrame(7ec1336dbcaeed6b).(const QRegioncxx . . $ QRegion# &renderedRegion, const QRegioncxx . . $ QRegion# &damagedRegion, OutputFramecxx . . $ KWin/OutputFrame# *frame) override;
40 DrmDevicecxx . . $ KWin/DrmDevice# *scanoutDevicecxx . . $ KWin/EglLayer#scanoutDevice(8efad915dbd6b761).() const override;
41 QHashcxx . . $ QHash#<uint32_tcxx . . $ uint32_t#, QListcxx . . $ QList#<uint64_tcxx . . $ uint64_t#>> supportedDrmFormatscxx . . $ KWin/EglLayer#supportedDrmFormats(3259d3b1b5628cf5).() const override;
42
43 private:
44 EglBackendcxx . . $ KWin/EglBackend# *const m_backendcxx . . $ KWin/EglLayer#m_backend.;
45 };
46
47 class EglBackendcxx . . $ KWin/EglBackend# : public OpenGLBackendcxx . . $ KWin/OpenGLBackend#
48 {
49 Q_OBJECTcxx . . $ KWin/EglBackend#QPrivateSignal#
50 public:
51 EglBackendcxx . . $ KWin/EglBackend#EglBackend(9fb7d843b20731f9).(::Displaycxx . . $ Display# *display, X11StandaloneBackendcxx . . $ KWin/X11StandaloneBackend# *platform);
52 ~cxx . . $ KWin/EglBackend#`~EglBackend`(ced63f7c635d850d).EglBackendcxx . . $ KWin/EglBackend#() override;
53
54 void initcxx . . $ KWin/EglBackend#init(49f6e7a06ebc5aa8).() override;
55
56 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<SurfaceTexturecxx . . $ KWin/SurfaceTexture#> createSurfaceTextureX11cxx . . $ KWin/EglBackend#createSurfaceTextureX11(9d8167ee6d825944).(SurfacePixmapX11cxx . . $ KWin/SurfacePixmapX11# *texture) override;
57 OutputLayerBeginFrameInfocxx . . $ KWin/OutputLayerBeginFrameInfo# beginFramecxx . . $ KWin/EglBackend#beginFrame(551221ec73e56c7c).();
58 void endFramecxx . . $ KWin/EglBackend#endFrame(e698f916c28e0141).(const QRegioncxx . . $ QRegion# &renderedRegion, const QRegioncxx . . $ QRegion# &damagedRegion, OutputFramecxx . . $ KWin/OutputFrame# *frame);
59 bool presentcxx . . $ KWin/EglBackend#present(9b48bd70b46193a3).(Outputcxx . . $ KWin/Output# *output, const stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<OutputFramecxx . . $ KWin/OutputFrame#> &frame) override;
60 OverlayWindowcxx . . $ KWin/OverlayWindow# *overlayWindowcxx . . $ KWin/EglBackend#overlayWindow(457de2fb03980396).() const override;
61 OutputLayercxx . . $ KWin/OutputLayer# *primaryLayercxx . . $ KWin/EglBackend#primaryLayer(d7c6312df472d4e8).(Outputcxx . . $ KWin/Output# *output) override;
62 EglDisplaycxx . . $ KWin/EglDisplay# *eglDisplayObjectcxx . . $ KWin/EglBackend#eglDisplayObject(28f1122974cbf9ec).() const override;
63 OpenGlContextcxx . . $ KWin/OpenGlContext# *openglContextcxx . . $ KWin/EglBackend#openglContext(564e1736c3c4c019).() const override;
64 bool makeCurrentcxx . . $ KWin/EglBackend#makeCurrent(c9857a73d68e59ba).() override;
65 void doneCurrentcxx . . $ KWin/EglBackend#doneCurrent(49f6e7a06ebc5aa8).() override;
66
67 private:
68 EGLConfig chooseBufferConfigcxx . . $ KWin/EglBackend#chooseBufferConfig(50c7df7de5344ebb).();
69 bool initRenderingContextcxx . . $ KWin/EglBackend#initRenderingContext(c9857a73d68e59ba).();
70 void initClientExtensionscxx . . $ KWin/EglBackend#initClientExtensions(49f6e7a06ebc5aa8).();
71 bool hasClientExtensioncxx . . $ KWin/EglBackend#hasClientExtension(544790aa27d183a0).(const QByteArraycxx . . $ QByteArray# &name);
72 void screenGeometryChangedcxx . . $ KWin/EglBackend#screenGeometryChanged(49f6e7a06ebc5aa8).();
73 void presentSurfacecxx . . $ KWin/EglBackend#presentSurface(984bc29b8bb8dfdd).(::EGLSurface surface, const QRegioncxx . . $ QRegion# &damage, const QRectcxx . . $ QRect# &screenGeometry);
74 void vblankcxx . . $ KWin/EglBackend#vblank(66113eeeb0427e41).(stdcxx . . $ std/::chronocxx . . $ std/chrono/::nanosecondscxx . . $ std/chrono/nanoseconds# timestamp);
75 ::EGLSurface createSurfacecxx . . $ KWin/EglBackend#createSurface(52408c21a1e21ff7).(xcb_window_t window);
76
77 X11StandaloneBackendcxx . . $ KWin/X11StandaloneBackend# *m_backendcxx . . $ KWin/EglBackend#m_backend.;
78 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<SoftwareVsyncMonitorcxx . . $ KWin/SoftwareVsyncMonitor#> m_vsyncMonitorcxx . . $ KWin/EglBackend#m_vsyncMonitor.;
79 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<OverlayWindowcxx . . $ KWin/OverlayWindow#> m_overlayWindowcxx . . $ KWin/EglBackend#m_overlayWindow.;
80 DamageJournalcxx . . $ KWin/DamageJournal# m_damageJournalcxx . . $ KWin/EglBackend#m_damageJournal.;
81 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<GLFramebuffercxx . . $ KWin/GLFramebuffer#> m_fbocxx . . $ KWin/EglBackend#m_fbo.;
82 int m_bufferAgecxx . . $ KWin/EglBackend#m_bufferAge. = 0;
83 QRegioncxx . . $ QRegion# m_lastRenderedRegioncxx . . $ KWin/EglBackend#m_lastRenderedRegion.;
84 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<EglLayercxx . . $ KWin/EglLayer#> m_layercxx . . $ KWin/EglBackend#m_layer.;
85 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<GLRenderTimeQuerycxx . . $ KWin/GLRenderTimeQuery#> m_querycxx . . $ KWin/EglBackend#m_query.;
86 int m_havePostSubBuffercxx . . $ KWin/EglBackend#m_havePostSubBuffer. = false;
87 bool m_havePlatformBasecxx . . $ KWin/EglBackend#m_havePlatformBase. = false;
88 Optionscxx . . $ KWin/Options#::GlSwapStrategycxx . . $ KWin/Options#GlSwapStrategy# m_swapStrategycxx . . $ KWin/EglBackend#m_swapStrategy. = Optionscxx . . $ KWin/Options#::AutoSwapStrategycxx . . $ KWin/Options#AutoSwapStrategy.;
89 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<OutputFramecxx . . $ KWin/OutputFrame#> m_framecxx . . $ KWin/EglBackend#m_frame.;
90
91 QListcxx . . $ QList#<QByteArraycxx . . $ QByteArray#> m_clientExtensionscxx . . $ KWin/EglBackend#m_clientExtensions.;
92 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<EglContextcxx . . $ KWin/EglContext#> m_contextcxx . . $ KWin/EglBackend#m_context.;
93 ::EGLSurface m_surfacecxx . . $ KWin/EglBackend#m_surface. = EGL_NO_SURFACEcxx . . $ `<external>/8737771837112858317/egl_generated.h:847:9`!;
94 };
95
96 class EglPixmapTexturecxx . . $ KWin/EglPixmapTexture# : public GLTexturecxx . . $ KWin/GLTexture#
97 {
98 public:
99 explicit EglPixmapTexturecxx . . $ KWin/EglPixmapTexture#EglPixmapTexture(88d74bfebf2a8f86).(EglBackendcxx . . $ KWin/EglBackend# *backend);
100 ~cxx . . $ KWin/EglPixmapTexture#`~EglPixmapTexture`(ced63f7c635d850d).EglPixmapTexturecxx . . $ KWin/EglPixmapTexture#() override;
101
102 bool createcxx . . $ KWin/EglPixmapTexture#create(b99d850dffc4ca8a).(SurfacePixmapX11cxx . . $ KWin/SurfacePixmapX11# *texture);
103
104 private:
105 void onDamagecxx . . $ KWin/EglPixmapTexture#onDamage(49f6e7a06ebc5aa8).() override;
106
107 EglBackendcxx . . $ KWin/EglBackend# *const m_backendcxx . . $ KWin/EglPixmapTexture#m_backend.;
108 EGLImageKHR m_imagecxx . . $ KWin/EglPixmapTexture#m_image. = EGL_NO_IMAGE_KHRcxx . . $ `<external>/8737771837112858317/egl_generated.h:841:9`!;
109 };
110
111 class EglSurfaceTextureX11cxx . . $ KWin/EglSurfaceTextureX11# : public OpenGLSurfaceTextureX11cxx . . $ KWin/OpenGLSurfaceTextureX11#
112 {
113 public:
114 EglSurfaceTextureX11cxx . . $ KWin/EglSurfaceTextureX11#EglSurfaceTextureX11(bea8230f8022549b).(EglBackendcxx . . $ KWin/EglBackend# *backend, SurfacePixmapX11cxx . . $ KWin/SurfacePixmapX11# *texture);
115
116 bool createcxx . . $ KWin/EglSurfaceTextureX11#create(c9857a73d68e59ba).() override;
117 void updatecxx . . $ KWin/EglSurfaceTextureX11#update(bd1064c840c6b6e8).(const QRegioncxx . . $ QRegion# &region) override;
118 };
119
120 } // namespace KWin