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

#include <x11_windowed_egl_backend.h>

Inheritance diagram for KWin::X11WindowedEglPrimaryLayer:
KWin::OutputLayer

Public Member Functions

 X11WindowedEglPrimaryLayer (X11WindowedEglBackend *backend, X11WindowedOutput *output)
 
 ~X11WindowedEglPrimaryLayer () override
 
std::optional< OutputLayerBeginFrameInfobeginFrame () override
 
bool endFrame (const QRegion &renderedRegion, const QRegion &damagedRegion) override
 
std::chrono::nanoseconds queryRenderTime () const override
 
std::shared_ptr< GLTexturetexture () const
 
void present ()
 
- Public Member Functions inherited from KWin::OutputLayer
 OutputLayer (QObject *parent=nullptr)
 
qreal scale () const
 
void setScale (qreal scale)
 
QPointF hotspot () const
 
void setHotspot (const QPointF &hotspot)
 
QSizeF size () const
 
void setSize (const QSizeF &size)
 
virtual std::optional< QSize > fixedSize () const
 
QRegion repaints () const
 
void resetRepaints ()
 
void addRepaint (const QRegion &region)
 
bool needsRepaint () const
 
void setPosition (const QPointF &position)
 
QPointF position () const
 
void setEnabled (bool enable)
 
bool isEnabled () const
 
virtual bool scanout (SurfaceItem *surfaceItem)
 

Detailed Description

Definition at line 26 of file x11_windowed_egl_backend.h.

Constructor & Destructor Documentation

◆ X11WindowedEglPrimaryLayer()

KWin::X11WindowedEglPrimaryLayer::X11WindowedEglPrimaryLayer ( X11WindowedEglBackend * backend,
X11WindowedOutput * output )

Definition at line 23 of file x11_windowed_egl_backend.cpp.

◆ ~X11WindowedEglPrimaryLayer()

KWin::X11WindowedEglPrimaryLayer::~X11WindowedEglPrimaryLayer ( )
override

Definition at line 29 of file x11_windowed_egl_backend.cpp.

Member Function Documentation

◆ beginFrame()

std::optional< OutputLayerBeginFrameInfo > KWin::X11WindowedEglPrimaryLayer::beginFrame ( )
overridevirtual

Implements KWin::OutputLayer.

Definition at line 33 of file x11_windowed_egl_backend.cpp.

◆ endFrame()

bool KWin::X11WindowedEglPrimaryLayer::endFrame ( const QRegion & renderedRegion,
const QRegion & damagedRegion )
overridevirtual

Implements KWin::OutputLayer.

Definition at line 70 of file x11_windowed_egl_backend.cpp.

◆ present()

void KWin::X11WindowedEglPrimaryLayer::present ( )

Definition at line 76 of file x11_windowed_egl_backend.cpp.

◆ queryRenderTime()

std::chrono::nanoseconds KWin::X11WindowedEglPrimaryLayer::queryRenderTime ( ) const
overridevirtual

queries the render time of the last frame. If rendering isn't complete yet, this may block until it is

Implements KWin::OutputLayer.

Definition at line 115 of file x11_windowed_egl_backend.cpp.

◆ texture()

std::shared_ptr< GLTexture > KWin::X11WindowedEglPrimaryLayer::texture ( ) const

Definition at line 110 of file x11_windowed_egl_backend.cpp.


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