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

#include <qpainterbackend.h>

Inheritance diagram for KWin::QPainterBackend:
KWin::RenderBackend KWin::DrmQPainterBackend KWin::VirtualQPainterBackend KWin::Wayland::WaylandQPainterBackend KWin::X11WindowedQPainterBackend

Public Member Functions

virtual ~QPainterBackend ()
 
CompositingType compositingType () const override final
 
std::unique_ptr< SurfaceTexturecreateSurfaceTextureWayland (SurfacePixmap *pixmap) override
 
bool isFailed () const
 Whether the creation of the Backend failed.
 
- Public Member Functions inherited from KWin::RenderBackend
 RenderBackend (QObject *parent=nullptr)
 
virtual OverlayWindowoverlayWindow () const
 
virtual bool checkGraphicsReset ()
 
virtual OutputLayerprimaryLayer (Output *output)=0
 
virtual OutputLayercursorLayer (Output *output)
 
virtual void present (Output *output, const std::shared_ptr< OutputFrame > &frame)=0
 
virtual GraphicsBufferAllocatorgraphicsBufferAllocator () const
 
virtual bool testImportBuffer (GraphicsBuffer *buffer)
 
virtual QHash< uint32_t, QList< uint64_t > > supportedFormats () const
 
virtual std::unique_ptr< SurfaceTexturecreateSurfaceTextureX11 (SurfacePixmapX11 *pixmap)
 

Protected Member Functions

 QPainterBackend ()
 
void setFailed (const QString &reason)
 Sets the backend initialization to failed.
 

Detailed Description

Definition at line 25 of file qpainterbackend.h.

Constructor & Destructor Documentation

◆ ~QPainterBackend()

KWin::QPainterBackend::~QPainterBackend ( )
virtual

Definition at line 23 of file qpainterbackend.cpp.

◆ QPainterBackend()

KWin::QPainterBackend::QPainterBackend ( )
protected

Definition at line 18 of file qpainterbackend.cpp.

Member Function Documentation

◆ compositingType()

CompositingType KWin::QPainterBackend::compositingType ( ) const
finaloverridevirtual

Implements KWin::RenderBackend.

Definition at line 27 of file qpainterbackend.cpp.

◆ createSurfaceTextureWayland()

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

Reimplemented from KWin::RenderBackend.

Definition at line 32 of file qpainterbackend.cpp.

◆ isFailed()

bool KWin::QPainterBackend::isFailed ( ) const
inline

Whether the creation of the Backend failed.

The SceneQPainter should test whether the Backend got constructed correctly. If this method returns true, the SceneQPainter should not try to start the rendering.

Returns
bool true if the creation of the Backend failed, false otherwise.

Definition at line 44 of file qpainterbackend.h.

◆ setFailed()

void KWin::QPainterBackend::setFailed ( const QString & reason)
protected

Sets the backend initialization to failed.

This method should be called by the concrete subclass in case the initialization failed. The given reason is logged as a warning.

Parameters
reasonThe reason why the initialization failed.

Definition at line 37 of file qpainterbackend.cpp.


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