KWin
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
KWin::X11WindowedEglBackend Class Reference

OpenGL Backend using Egl windowing system over an X overlay window. More...

#include <x11_windowed_egl_backend.h>

Inheritance diagram for KWin::X11WindowedEglBackend:
KWin::AbstractEglBackend KWin::OpenGLBackend KWin::RenderBackend

Public Member Functions

 X11WindowedEglBackend (X11WindowedBackend *backend)
 
 ~X11WindowedEglBackend () override
 
X11WindowedBackendbackend () const
 
GraphicsBufferAllocatorgraphicsBufferAllocator () const override
 
std::unique_ptr< SurfaceTexturecreateSurfaceTextureWayland (SurfacePixmap *pixmap) override
 
std::pair< std::shared_ptr< GLTexture >, ColorDescriptiontextureForOutput (Output *output) const override
 
void init () override
 
void endFrame (Output *output, const QRegion &renderedRegion, const QRegion &damagedRegion)
 
void present (Output *output, const std::shared_ptr< OutputFrame > &frame) override
 
OutputLayerprimaryLayer (Output *output) override
 
OutputLayercursorLayer (Output *output) override
 
- Public Member Functions inherited from KWin::AbstractEglBackend
 ~AbstractEglBackend () override
 
bool makeCurrent () override
 
void doneCurrent () override
 
EGLSurface surface () const
 
EGLConfig config () const
 
EglDisplayeglDisplayObject () const
 
EglContextcontextObject ()
 
bool testImportBuffer (GraphicsBuffer *buffer) override
 
QHash< uint32_t, QList< uint64_t > > supportedFormats () const override
 
QList< LinuxDmaBufV1Feedback::Tranchetranches () const
 
dev_t deviceId () const
 
virtual bool prefer10bpc () const
 
std::shared_ptr< GLTextureimportDmaBufAsTexture (const DmaBufAttributes &attributes) const
 
EGLImageKHR importDmaBufAsImage (const DmaBufAttributes &attributes) const
 
EGLImageKHR importDmaBufAsImage (const DmaBufAttributes &attributes, int plane, int format, const QSize &size) const
 
EGLImageKHR importBufferAsImage (GraphicsBuffer *buffer)
 
EGLImageKHR importBufferAsImage (GraphicsBuffer *buffer, int plane, int format, const QSize &size)
 
- Public Member Functions inherited from KWin::OpenGLBackend
 OpenGLBackend ()
 
virtual ~OpenGLBackend ()
 
CompositingType compositingType () const override final
 
bool checkGraphicsReset () override final
 
bool isFailed () const
 Whether the creation of the Backend failed.
 
bool supportsBufferAge () const
 
bool supportsNativeFence () const
 
QList< QByteArray > extensions () const
 
bool hasExtension (const QByteArray &extension) const
 
void copyPixels (const QRegion &region, const QSize &screenSize)
 
- Public Member Functions inherited from KWin::RenderBackend
 RenderBackend (QObject *parent=nullptr)
 
virtual OverlayWindowoverlayWindow () const
 
virtual std::unique_ptr< SurfaceTexturecreateSurfaceTextureX11 (SurfacePixmapX11 *pixmap)
 

Protected Member Functions

void cleanupSurfaces () override
 
- Protected Member Functions inherited from KWin::AbstractEglBackend
 AbstractEglBackend (dev_t deviceId=0)
 
void setSurface (const EGLSurface &surface)
 
void cleanup ()
 
void setEglDisplay (EglDisplay *display)
 
void initKWinGL ()
 
void initClientExtensions ()
 
void initWayland ()
 
bool hasClientExtension (const QByteArray &ext) const
 
bool isOpenGLES () const
 
bool createContext (EGLConfig config)
 
bool ensureGlobalShareContext (EGLConfig config)
 
void destroyGlobalShareContext ()
 
::EGLContext createContextInternal (::EGLContext sharedContext)
 
void teardown ()
 
- Protected Member Functions inherited from KWin::OpenGLBackend
void setFailed (const QString &reason)
 Sets the backend initialization to failed.
 
void setSupportsBufferAge (bool value)
 
void setSupportsNativeFence (bool value)
 
void setExtensions (const QList< QByteArray > &extensions)
 

Additional Inherited Members

- Protected Attributes inherited from KWin::AbstractEglBackend
EglDisplaym_display = nullptr
 
EGLSurface m_surface = EGL_NO_SURFACE
 
std::shared_ptr< EglContextm_context
 
QList< QByteArray > m_clientExtensions
 
const dev_t m_deviceId
 
QList< LinuxDmaBufV1Feedback::Tranchem_tranches
 
QHash< std::pair< GraphicsBuffer *, int >, EGLImageKHRm_importedBuffers
 

Detailed Description

OpenGL Backend using Egl windowing system over an X overlay window.

Definition at line 70 of file x11_windowed_egl_backend.h.

Constructor & Destructor Documentation

◆ X11WindowedEglBackend()

KWin::X11WindowedEglBackend::X11WindowedEglBackend ( X11WindowedBackend * backend)
explicit

Definition at line 179 of file x11_windowed_egl_backend.cpp.

◆ ~X11WindowedEglBackend()

KWin::X11WindowedEglBackend::~X11WindowedEglBackend ( )
override

Definition at line 185 of file x11_windowed_egl_backend.cpp.

Member Function Documentation

◆ backend()

X11WindowedBackend * KWin::X11WindowedEglBackend::backend ( ) const

Definition at line 190 of file x11_windowed_egl_backend.cpp.

◆ cleanupSurfaces()

void KWin::X11WindowedEglBackend::cleanupSurfaces ( )
overrideprotectedvirtual

Reimplemented from KWin::AbstractEglBackend.

Definition at line 258 of file x11_windowed_egl_backend.cpp.

◆ createSurfaceTextureWayland()

std::unique_ptr< SurfaceTexture > KWin::X11WindowedEglBackend::createSurfaceTextureWayland ( SurfacePixmap * pixmap)
overridevirtual

Reimplemented from KWin::RenderBackend.

Definition at line 279 of file x11_windowed_egl_backend.cpp.

◆ cursorLayer()

OutputLayer * KWin::X11WindowedEglBackend::cursorLayer ( Output * output)
overridevirtual

Reimplemented from KWin::RenderBackend.

Definition at line 274 of file x11_windowed_egl_backend.cpp.

◆ endFrame()

void KWin::X11WindowedEglBackend::endFrame ( Output * output,
const QRegion & renderedRegion,
const QRegion & damagedRegion )

◆ graphicsBufferAllocator()

GraphicsBufferAllocator * KWin::X11WindowedEglBackend::graphicsBufferAllocator ( ) const
overridevirtual

Reimplemented from KWin::RenderBackend.

Definition at line 195 of file x11_windowed_egl_backend.cpp.

◆ init()

void KWin::X11WindowedEglBackend::init ( )
overridevirtual

Implements KWin::OpenGLBackend.

Definition at line 232 of file x11_windowed_egl_backend.cpp.

◆ present()

void KWin::X11WindowedEglBackend::present ( Output * output,
const std::shared_ptr< OutputFrame > & frame )
overridevirtual

Implements KWin::RenderBackend.

Definition at line 263 of file x11_windowed_egl_backend.cpp.

◆ primaryLayer()

OutputLayer * KWin::X11WindowedEglBackend::primaryLayer ( Output * output)
overridevirtual

Implements KWin::RenderBackend.

Definition at line 269 of file x11_windowed_egl_backend.cpp.

◆ textureForOutput()

std::pair< std::shared_ptr< GLTexture >, ColorDescription > KWin::X11WindowedEglBackend::textureForOutput ( Output * output) const
overridevirtual

Reimplemented from KWin::OpenGLBackend.

Definition at line 284 of file x11_windowed_egl_backend.cpp.


The documentation for this class was generated from the following files: