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

#include <softwarevsyncmonitor.h>

Inheritance diagram for KWin::SoftwareVsyncMonitor:
KWin::VsyncMonitor

Public Slots

void arm () override
 
- Public Slots inherited from KWin::VsyncMonitor
virtual void arm ()=0
 

Public Member Functions

int refreshRate () const
 
void setRefreshRate (int refreshRate)
 
- Public Member Functions inherited from KWin::VsyncMonitor
 VsyncMonitor ()
 

Static Public Member Functions

static std::unique_ptr< SoftwareVsyncMonitorcreate ()
 

Additional Inherited Members

- Signals inherited from KWin::VsyncMonitor
void errorOccurred ()
 
void vblankOccurred (std::chrono::nanoseconds timestamp)
 

Detailed Description

The SoftwareVsyncMonitor class provides synthetic vblank events with constant interval.

The software vsync monitor can never fail and it is always available. It can be used as fallback if hardware based approaches to monitor vsync events are unavailable.

The vblank interval can be changed by calling the setRefreshRate() function.

Definition at line 25 of file softwarevsyncmonitor.h.

Member Function Documentation

◆ arm

void KWin::SoftwareVsyncMonitor::arm ( )
overrideslot

Definition at line 44 of file softwarevsyncmonitor.cpp.

◆ create()

std::unique_ptr< SoftwareVsyncMonitor > KWin::SoftwareVsyncMonitor::create ( )
static

Definition at line 12 of file softwarevsyncmonitor.cpp.

◆ refreshRate()

int KWin::SoftwareVsyncMonitor::refreshRate ( ) const

Definition at line 23 of file softwarevsyncmonitor.cpp.

◆ setRefreshRate()

void KWin::SoftwareVsyncMonitor::setRefreshRate ( int refreshRate)

Definition at line 28 of file softwarevsyncmonitor.cpp.


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