Dali 3D User Interface Engine
List of all members | Public Member Functions | Protected Member Functions
Dali::Internal::Adaptor::VSyncMonitorInterface Class Referenceabstract

Interface for monitoring VSync Implementations must provide a DoSync method. More...

#include <vsync-monitor-interface.h>

Inheritance diagram for Dali::Internal::Adaptor::VSyncMonitorInterface:
Inheritance graph
[legend]

Public Member Functions

virtual void Initialize ()=0
 Initialize the vsync monitor. More...
 
virtual void Terminate ()=0
 Terminate the vsync monitor. More...
 
virtual bool UseHardware ()=0
 Checks if hardware sync is available and enabled. More...
 
virtual bool DoSync (unsigned int &frameNumber, unsigned int &seconds, unsigned int &microseconds)=0
 Wait for vertical blank sync. More...
 

Protected Member Functions

virtual ~VSyncMonitorInterface ()
 Virtual protected destructor - no deletion through this interface. More...
 

Detailed Description

Interface for monitoring VSync Implementations must provide a DoSync method.

Definition at line 37 of file vsync-monitor-interface.h.

Constructor & Destructor Documentation

virtual Dali::Internal::Adaptor::VSyncMonitorInterface::~VSyncMonitorInterface ( )
inlineprotectedvirtual

Virtual protected destructor - no deletion through this interface.

Definition at line 71 of file vsync-monitor-interface.h.

Member Function Documentation

virtual bool Dali::Internal::Adaptor::VSyncMonitorInterface::DoSync ( unsigned int &  frameNumber,
unsigned int &  seconds,
unsigned int &  microseconds 
)
pure virtual

Wait for vertical blank sync.

Parameters
[out]frameNumberThe current sequence number for this vsync (increments by one for each vsync)
[out]secondsThe timestamp (seconds) when the vsync occured
[out]microsecondsThe timestamp (microseconds) when the vsync occured
Returns
true if a valid sync was detected, false on error

Implemented in Dali::Internal::Adaptor::VSyncMonitor.

Referenced by Dali::Internal::Adaptor::VSyncNotifier::Run().

Here is the caller graph for this function:

virtual void Dali::Internal::Adaptor::VSyncMonitorInterface::Initialize ( )
pure virtual

Initialize the vsync monitor.

Implemented in Dali::Internal::Adaptor::VSyncMonitor.

Referenced by Dali::Internal::Adaptor::VSyncNotifier::Start().

Here is the caller graph for this function:

virtual void Dali::Internal::Adaptor::VSyncMonitorInterface::Terminate ( )
pure virtual

Terminate the vsync monitor.

Implemented in Dali::Internal::Adaptor::VSyncMonitor.

Referenced by Dali::Internal::Adaptor::VSyncNotifier::Stop().

Here is the caller graph for this function:

virtual bool Dali::Internal::Adaptor::VSyncMonitorInterface::UseHardware ( )
pure virtual

Checks if hardware sync is available and enabled.

Returns
true if hardware sync is available and enabled

Implemented in Dali::Internal::Adaptor::VSyncMonitor.

Referenced by Dali::Internal::Adaptor::VSyncNotifier::Run().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Dali Docs Home
Read more about Dali