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

#include <drm_crtc.h>

Inheritance diagram for KWin::DrmCrtc:
KWin::DrmObject

Public Member Functions

 DrmCrtc (DrmGpu *gpu, uint32_t crtcId, int pipeIndex, DrmPlane *primaryPlane, DrmPlane *cursorPlane)
 
void disable (DrmAtomicCommit *commit) override
 
bool updateProperties () override
 
int pipeIndex () const
 
int gammaRampSize () const
 
DrmPlaneprimaryPlane () const
 
DrmPlanecursorPlane () const
 
drmModeModeInfo queryCurrentMode ()
 
std::shared_ptr< DrmFramebuffercurrent () const
 
void setCurrent (const std::shared_ptr< DrmFramebuffer > &buffer)
 
void releaseCurrentBuffer ()
 
- Public Member Functions inherited from KWin::DrmObject
virtual ~DrmObject ()=default
 
 DrmObject (const DrmObject &)=delete
 
bool init ()
 
uint32_t id () const
 
DrmGpugpu () const
 
uint32_t type () const
 
QString typeName () const
 

Public Attributes

DrmProperty modeId
 
DrmProperty active
 
DrmProperty vrrEnabled
 
DrmProperty gammaLut
 
DrmProperty gammaLutSize
 
DrmProperty ctm
 
DrmProperty degammaLut
 
DrmProperty degammaLutSize
 

Additional Inherited Members

- Protected Member Functions inherited from KWin::DrmObject
 DrmObject (DrmGpu *gpu, uint32_t objectId, uint32_t objectType)
 
DrmPropertyList queryProperties () const
 

Detailed Description

Definition at line 25 of file drm_crtc.h.

Constructor & Destructor Documentation

◆ DrmCrtc()

KWin::DrmCrtc::DrmCrtc ( DrmGpu * gpu,
uint32_t crtcId,
int pipeIndex,
DrmPlane * primaryPlane,
DrmPlane * cursorPlane )

Definition at line 20 of file drm_crtc.cpp.

Member Function Documentation

◆ current()

std::shared_ptr< DrmFramebuffer > KWin::DrmCrtc::current ( ) const

Definition at line 66 of file drm_crtc.cpp.

◆ cursorPlane()

DrmPlane * KWin::DrmCrtc::cursorPlane ( ) const

Definition at line 92 of file drm_crtc.cpp.

◆ disable()

void KWin::DrmCrtc::disable ( DrmAtomicCommit * commit)
overridevirtual

Set the properties in such a way that this resource won't be used anymore

Implements KWin::DrmObject.

Definition at line 97 of file drm_crtc.cpp.

◆ gammaRampSize()

int KWin::DrmCrtc::gammaRampSize ( ) const

Definition at line 76 of file drm_crtc.cpp.

◆ pipeIndex()

int KWin::DrmCrtc::pipeIndex ( ) const

Definition at line 61 of file drm_crtc.cpp.

◆ primaryPlane()

DrmPlane * KWin::DrmCrtc::primaryPlane ( ) const

Definition at line 87 of file drm_crtc.cpp.

◆ queryCurrentMode()

drmModeModeInfo KWin::DrmCrtc::queryCurrentMode ( )

Definition at line 55 of file drm_crtc.cpp.

◆ releaseCurrentBuffer()

void KWin::DrmCrtc::releaseCurrentBuffer ( )

Definition at line 103 of file drm_crtc.cpp.

◆ setCurrent()

void KWin::DrmCrtc::setCurrent ( const std::shared_ptr< DrmFramebuffer > & buffer)

Definition at line 71 of file drm_crtc.cpp.

◆ updateProperties()

bool KWin::DrmCrtc::updateProperties ( )
overridevirtual

Implements KWin::DrmObject.

Definition at line 37 of file drm_crtc.cpp.

Member Data Documentation

◆ active

DrmProperty KWin::DrmCrtc::active

Definition at line 44 of file drm_crtc.h.

◆ ctm

DrmProperty KWin::DrmCrtc::ctm

Definition at line 48 of file drm_crtc.h.

◆ degammaLut

DrmProperty KWin::DrmCrtc::degammaLut

Definition at line 49 of file drm_crtc.h.

◆ degammaLutSize

DrmProperty KWin::DrmCrtc::degammaLutSize

Definition at line 50 of file drm_crtc.h.

◆ gammaLut

DrmProperty KWin::DrmCrtc::gammaLut

Definition at line 46 of file drm_crtc.h.

◆ gammaLutSize

DrmProperty KWin::DrmCrtc::gammaLutSize

Definition at line 47 of file drm_crtc.h.

◆ modeId

DrmProperty KWin::DrmCrtc::modeId

Definition at line 43 of file drm_crtc.h.

◆ vrrEnabled

DrmProperty KWin::DrmCrtc::vrrEnabled

Definition at line 45 of file drm_crtc.h.


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