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

OpenGL Backend using GLX over an X overlay window. More...

#include <x11_standalone_glx_backend.h>

Inheritance diagram for KWin::GlxBackend:
KWin::OpenGLBackend KWin::RenderBackend

Public Member Functions

 GlxBackend (::Display *display, X11StandaloneBackend *backend)
 
 ~GlxBackend () override
 
std::unique_ptr< SurfaceTexturecreateSurfaceTextureX11 (SurfacePixmapX11 *pixmap) override
 
OutputLayerBeginFrameInfo beginFrame ()
 
void endFrame (const QRegion &renderedRegion, const QRegion &damagedRegion)
 
std::chrono::nanoseconds queryRenderTime ()
 
void present (Output *output, const std::shared_ptr< OutputFrame > &frame) override
 
bool makeCurrent () override
 
void doneCurrent () override
 
OverlayWindowoverlayWindow () const override
 
void init () override
 
OutputLayerprimaryLayer (Output *output) override
 
::Displaydisplay () const
 
- 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 bool testImportBuffer (GraphicsBuffer *buffer)
 
virtual QHash< uint32_t, QList< uint64_t > > supportedFormats () const
 
virtual std::unique_ptr< SurfaceTexturecreateSurfaceTextureWayland (SurfacePixmap *pixmap)
 

Friends

class GlxPixmapTexture
 

Additional Inherited Members

- 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)
 

Detailed Description

OpenGL Backend using GLX over an X overlay window.

Definition at line 80 of file x11_standalone_glx_backend.h.

Constructor & Destructor Documentation

◆ GlxBackend()

KWin::GlxBackend::GlxBackend ( ::Display * display,
X11StandaloneBackend * backend )

Definition at line 123 of file x11_standalone_glx_backend.cpp.

◆ ~GlxBackend()

KWin::GlxBackend::~GlxBackend ( )
override

Definition at line 144 of file x11_standalone_glx_backend.cpp.

Member Function Documentation

◆ beginFrame()

OutputLayerBeginFrameInfo KWin::GlxBackend::beginFrame ( )

Definition at line 689 of file x11_standalone_glx_backend.cpp.

◆ createSurfaceTextureX11()

std::unique_ptr< SurfaceTexture > KWin::GlxBackend::createSurfaceTextureX11 ( SurfacePixmapX11 * pixmap)
overridevirtual

Reimplemented from KWin::RenderBackend.

Definition at line 684 of file x11_standalone_glx_backend.cpp.

◆ display()

::Display * KWin::GlxBackend::display ( ) const
inline

Definition at line 98 of file x11_standalone_glx_backend.h.

◆ doneCurrent()

void KWin::GlxBackend::doneCurrent ( )
overridevirtual

Implements KWin::OpenGLBackend.

Definition at line 766 of file x11_standalone_glx_backend.cpp.

◆ endFrame()

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

Definition at line 713 of file x11_standalone_glx_backend.cpp.

◆ init()

void KWin::GlxBackend::init ( )
overridevirtual

Implements KWin::OpenGLBackend.

Definition at line 192 of file x11_standalone_glx_backend.cpp.

◆ makeCurrent()

bool KWin::GlxBackend::makeCurrent ( )
overridevirtual

Implements KWin::OpenGLBackend.

Definition at line 761 of file x11_standalone_glx_backend.cpp.

◆ overlayWindow()

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

Reimplemented from KWin::RenderBackend.

Definition at line 771 of file x11_standalone_glx_backend.cpp.

◆ present()

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

Implements KWin::RenderBackend.

Definition at line 729 of file x11_standalone_glx_backend.cpp.

◆ primaryLayer()

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

Implements KWin::RenderBackend.

Definition at line 776 of file x11_standalone_glx_backend.cpp.

◆ queryRenderTime()

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

Definition at line 723 of file x11_standalone_glx_backend.cpp.

Friends And Related Symbol Documentation

◆ GlxPixmapTexture

friend class GlxPixmapTexture
friend

Definition at line 143 of file x11_standalone_glx_backend.h.


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