KWin
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
KWin::VirtualEglBackend Class Reference

OpenGL Backend using Egl on a GBM surface. More...

#include <virtual_egl_backend.h>

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

Public Member Functions

 VirtualEglBackend (VirtualBackend *b)
 
 ~VirtualEglBackend () override
 
std::unique_ptr< SurfaceTexturecreateSurfaceTextureWayland (SurfacePixmap *pixmap) override
 
std::pair< std::shared_ptr< KWin::GLTexture >, ColorDescriptiontextureForOutput (Output *output) const override
 
OutputLayerprimaryLayer (Output *output) override
 
void present (Output *output, const std::shared_ptr< OutputFrame > &frame) override
 
void init () override
 
VirtualBackendbackend () const
 
GraphicsBufferAllocatorgraphicsBufferAllocator () const 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 OutputLayercursorLayer (Output *output)
 
virtual std::unique_ptr< SurfaceTexturecreateSurfaceTextureX11 (SurfacePixmapX11 *pixmap)
 

Additional Inherited Members

- 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)
 
- 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 on a GBM surface.

Definition at line 50 of file virtual_egl_backend.h.

Constructor & Destructor Documentation

◆ VirtualEglBackend()

KWin::VirtualEglBackend::VirtualEglBackend ( VirtualBackend * b)

Definition at line 82 of file virtual_egl_backend.cpp.

◆ ~VirtualEglBackend()

KWin::VirtualEglBackend::~VirtualEglBackend ( )
override

Definition at line 89 of file virtual_egl_backend.cpp.

Member Function Documentation

◆ backend()

VirtualBackend * KWin::VirtualEglBackend::backend ( ) const

Definition at line 95 of file virtual_egl_backend.cpp.

◆ createSurfaceTextureWayland()

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

Reimplemented from KWin::RenderBackend.

Definition at line 174 of file virtual_egl_backend.cpp.

◆ graphicsBufferAllocator()

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

Reimplemented from KWin::RenderBackend.

Definition at line 100 of file virtual_egl_backend.cpp.

◆ init()

void KWin::VirtualEglBackend::init ( )
overridevirtual

Implements KWin::OpenGLBackend.

Definition at line 128 of file virtual_egl_backend.cpp.

◆ present()

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

Implements KWin::RenderBackend.

Definition at line 184 of file virtual_egl_backend.cpp.

◆ primaryLayer()

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

Implements KWin::RenderBackend.

Definition at line 179 of file virtual_egl_backend.cpp.

◆ textureForOutput()

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

Reimplemented from KWin::OpenGLBackend.

Definition at line 189 of file virtual_egl_backend.cpp.


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