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

#include <x11_standalone_egl_backend.h>

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

Public Member Functions

 EglBackend (::Display *display, X11StandaloneBackend *platform)
 
 ~EglBackend () override
 
void init () override
 
std::unique_ptr< SurfaceTexturecreateSurfaceTextureX11 (SurfacePixmapX11 *texture) override
 
OutputLayerBeginFrameInfo beginFrame ()
 
void endFrame (const QRegion &renderedRegion, const QRegion &damagedRegion)
 
void present (Output *output, const std::shared_ptr< OutputFrame > &frame) override
 
OverlayWindowoverlayWindow () const override
 
OutputLayerprimaryLayer (Output *output) override
 
std::chrono::nanoseconds queryRenderTime ()
 
- 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)
 
virtual std::pair< std::shared_ptr< GLTexture >, ColorDescriptiontextureForOutput (Output *output) const
 
- Public Member Functions inherited from KWin::RenderBackend
 RenderBackend (QObject *parent=nullptr)
 
virtual OutputLayercursorLayer (Output *output)
 
virtual GraphicsBufferAllocatorgraphicsBufferAllocator () const
 
virtual std::unique_ptr< SurfaceTexturecreateSurfaceTextureWayland (SurfacePixmap *pixmap)
 

Protected Member Functions

EGLConfig chooseBufferConfig ()
 
bool initRenderingContext ()
 
- Protected Member Functions inherited from KWin::AbstractEglBackend
 AbstractEglBackend (dev_t deviceId=0)
 
void setSurface (const EGLSurface &surface)
 
void cleanup ()
 
virtual void cleanupSurfaces ()
 
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

Definition at line 42 of file x11_standalone_egl_backend.h.

Constructor & Destructor Documentation

◆ EglBackend()

KWin::EglBackend::EglBackend ( ::Display * display,
X11StandaloneBackend * platform )

Definition at line 52 of file x11_standalone_egl_backend.cpp.

◆ ~EglBackend()

KWin::EglBackend::~EglBackend ( )
override

Definition at line 72 of file x11_standalone_egl_backend.cpp.

Member Function Documentation

◆ beginFrame()

OutputLayerBeginFrameInfo KWin::EglBackend::beginFrame ( )

Definition at line 331 of file x11_standalone_egl_backend.cpp.

◆ chooseBufferConfig()

EGLConfig KWin::EglBackend::chooseBufferConfig ( )
protected

Definition at line 275 of file x11_standalone_egl_backend.cpp.

◆ createSurfaceTextureX11()

std::unique_ptr< SurfaceTexture > KWin::EglBackend::createSurfaceTextureX11 ( SurfacePixmapX11 * texture)
overridevirtual

Reimplemented from KWin::RenderBackend.

Definition at line 91 of file x11_standalone_egl_backend.cpp.

◆ endFrame()

void KWin::EglBackend::endFrame ( const QRegion & renderedRegion,
const QRegion & damagedRegion )

Definition at line 351 of file x11_standalone_egl_backend.cpp.

◆ init()

void KWin::EglBackend::init ( )
overridevirtual

Implements KWin::OpenGLBackend.

Definition at line 96 of file x11_standalone_egl_backend.cpp.

◆ initRenderingContext()

bool KWin::EglBackend::initRenderingContext ( )
protected

Definition at line 188 of file x11_standalone_egl_backend.cpp.

◆ overlayWindow()

OverlayWindow * KWin::EglBackend::overlayWindow ( ) const
overridevirtual

Reimplemented from KWin::RenderBackend.

Definition at line 404 of file x11_standalone_egl_backend.cpp.

◆ present()

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

Implements KWin::RenderBackend.

Definition at line 361 of file x11_standalone_egl_backend.cpp.

◆ primaryLayer()

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

Implements KWin::RenderBackend.

Definition at line 409 of file x11_standalone_egl_backend.cpp.

◆ queryRenderTime()

std::chrono::nanoseconds KWin::EglBackend::queryRenderTime ( )

Definition at line 414 of file x11_standalone_egl_backend.cpp.


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