xbmc
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
KODI::WINDOWING::WAYLAND::CWinSystemWayland Class Referenceabstract
Inheritance diagram for KODI::WINDOWING::WAYLAND::CWinSystemWayland:
Inheritance graph
[legend]
Collaboration diagram for KODI::WINDOWING::WAYLAND::CWinSystemWayland:
Collaboration graph
[legend]

Public Types

using PresentationFeedbackHandler = std::function< void(timespec, std::uint32_t, std::uint32_t, float, std::uint64_t)>
 

Public Member Functions

const std::string GetName () override
 
bool InitWindowSystem () override
 
bool DestroyWindowSystem () override
 
bool CreateNewWindow (const std::string &name, bool fullScreen, RESOLUTION_INFO &res) override
 
bool DestroyWindow () override
 
bool ResizeWindow (int newWidth, int newHeight, int newLeft, int newTop) override
 
bool SetFullScreen (bool fullScreen, RESOLUTION_INFO &res, bool blankOtherDisplays) override
 
void FinishModeChange (RESOLUTION res) override
 
void FinishWindowResize (int newWidth, int newHeight) override
 
bool UseLimitedColor () override
 
void UpdateResolutions () override
 
bool CanDoWindowed () override
 
bool Minimize () override
 
bool HasCursor () override
 
void ShowOSMouse (bool show) override
 
std::string GetClipboardText () override
 
float GetSyncOutputRefreshRate ()
 
float GetDisplayLatency () override
 Get average display latency. More...
 
float GetFrameLatencyAdjustment () override
 Get time that should be subtracted from the display latency for this frame in milliseconds. More...
 
std::unique_ptr< CVideoSyncGetVideoSync (void *clock) override
 
void Register (IDispResource *resource) override
 
void Unregister (IDispResource *resource) override
 
CSignalRegistration RegisterOnPresentationFeedback (const PresentationFeedbackHandler &handler)
 
std::vector< std::string > GetConnectedOutputs () override
 
bool MessagePump () override
 
- Public Member Functions inherited from CWinSystemBase
virtual CRenderSystemBaseGetRenderSystem ()
 
virtual bool DisplayHardwareScalingEnabled ()
 
virtual void UpdateDisplayHardwareScaling (const RESOLUTION_INFO &resInfo)
 
virtual bool MoveWindow (int topLeft, int topRight)
 
virtual bool CenterWindow ()
 
virtual bool IsCreated ()
 
virtual void NotifyAppFocusChange (bool bGaining)
 
virtual void NotifyAppActiveChange (bool bActivated)
 
virtual bool HasInertialGestures ()
 
virtual int NoOfBuffers ()
 
virtual bool Restore ()
 
virtual bool Hide ()
 
virtual bool Show (bool raise=true)
 
virtual void OnMove (int x, int y)
 
KODI::WINDOWING::COSScreenSaverManagerGetOSScreenSaver ()
 Get OS screen saver inhibit implementation if available. More...
 
unsigned int GetWidth ()
 
unsigned int GetHeight ()
 
bool IsFullScreen ()
 
void SetWindowResolution (int width, int height)
 
std::vector< RESOLUTION_WHRScreenResolutions (float refreshrate)
 
std::vector< REFRESHRATERefreshRates (int width, int height, uint32_t dwFlags)
 
REFRESHRATE DefaultRefreshRate (std::vector< REFRESHRATE > rates)
 
virtual bool HasCalibration (const RESOLUTION_INFO &resInfo)
 
void RegisterRenderLoop (IRenderLoop *client)
 
void UnregisterRenderLoop (IRenderLoop *client)
 
void DriveRenderLoop ()
 
CGraphicContextGetGfxContext ()
 
virtual void * GetHWContext ()
 Get OS specific hardware context. More...
 
std::shared_ptr< CDPMSSupportGetDPMSManager ()
 
virtual bool SetHDR (const VideoPicture *videoPicture)
 Set the HDR metadata. More...
 
virtual bool IsHDRDisplay ()
 
virtual HDR_STATUS ToggleHDR ()
 
virtual HDR_STATUS GetOSHDRStatus ()
 
virtual CHDRCapabilities GetDisplayHDRCapabilities () const
 
virtual DEBUG_INFO_RENDER GetDebugInfo ()
 

Protected Member Functions

std::unique_ptr< KODI::WINDOWING::IOSScreenSaverGetOSScreenSaverImpl () override
 
CSizeInt GetBufferSize () const
 
std::unique_ptr< CConnection > const & GetConnection ()
 
wayland::surface_t GetMainSurface ()
 
void PrepareFramePresentation ()
 
void FinishFramePresentation ()
 
virtual void SetContextSize (CSizeInt size)=0
 
- Protected Member Functions inherited from CWinSystemBase
void UpdateDesktopResolution (RESOLUTION_INFO &newRes, const std::string &output, int width, int height, float refreshRate, uint32_t dwFlags)
 

Additional Inherited Members

- Static Public Member Functions inherited from CWinSystemBase
static std::unique_ptr< CWinSystemBaseCreateWinSystem ()
 
- Static Public Attributes inherited from CWinSystemBase
static const char * SETTING_WINSYSTEM_IS_HDR_DISPLAY = "winsystem.ishdrdisplay"
 
- Protected Attributes inherited from CWinSystemBase
int m_nWidth = 0
 
int m_nHeight = 0
 
int m_nTop = 0
 
int m_nLeft = 0
 
bool m_bWindowCreated = false
 
bool m_bFullScreen = false
 
bool m_bBlankOtherDisplay = false
 
float m_fRefreshRate = 0.0f
 
std::unique_ptr< KODI::WINDOWING::COSScreenSaverManagerm_screenSaverManager
 
CCriticalSection m_renderLoopSection
 
std::vector< IRenderLoop * > m_renderLoopClients
 
std::unique_ptr< IWinEventsm_winEvents
 
std::unique_ptr< CGraphicContextm_gfxContext
 
std::shared_ptr< CDPMSSupportm_dpms
 

Member Function Documentation

◆ GetDisplayLatency()

float CWinSystemWayland::GetDisplayLatency ( )
overridevirtual

Get average display latency.

The latency should be measured as the time between finishing the rendering of a frame, i.e. calling PresentRender, and the rendered content becoming visible on the screen.

Returns
average display latency in seconds, or negative value if unknown

Reimplemented from CWinSystemBase.

◆ GetFrameLatencyAdjustment()

float CWinSystemWayland::GetFrameLatencyAdjustment ( )
overridevirtual

Get time that should be subtracted from the display latency for this frame in milliseconds.

Contrary to GetDisplayLatency, this value is calculated ad-hoc for the frame currently being rendered and not a value that is calculated/ averaged from past frames and their presentation times

Reimplemented from CWinSystemBase.


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